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

Function test_export

test_mcubes.py:46–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44
45
46def test_export():
47
48 u = np.zeros((10, 10, 10))
49 u[2:-2, 2:-2, 2:-2] = 1.0
50 vertices, triangles = mcubes.marching_cubes(u, 0.5)
51
52 mcubes.export_obj(vertices, triangles, "output/test.obj")
53 mcubes.export_off(vertices, triangles, "output/test.off")
54 mcubes.export_mesh(vertices, triangles, "output/test.dae")
55
56
57def test_invalid_input():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected