MCPcopy Create free account
hub / github.com/pmneila/PyMCubes / test_empty

Function test_empty

test_mcubes.py:10–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9
10def test_empty():
11
12 levelset = np.zeros((50, 50, 50))
13 vertices, triangles = mcubes.marching_cubes(levelset, 0.5)
14
15 assert len(vertices) == len(triangles) == 0
16
17
18def test_sphere():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected