MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / test_cut_nonmanifold

Method test_cut_nonmanifold

python/pymesh/tests/test_cut_to_disk.py:26–44  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

24
25 @unittest.expectedFailure
26 def test_cut_nonmanifold(self):
27 vertices = np.array([
28 [0.0, 0.0, 0.0],
29 [1.0, 0.0, 0.0],
30 [0.5, 0.0, 1.0],
31 [0.5, 1.0, 0.0],
32 [0.5, 1.0, 1.0],
33 ])
34 faces = np.array([
35 [0, 1, 2],
36 [0, 1, 3],
37 [0, 1, 4],
38 ])
39 mesh = form_mesh(vertices, faces)
40 self.assertFalse(mesh.is_manifold())
41
42 # Note that nonmanifold input mesh is not supported.
43 mesh = cut_to_disk(mesh)
44 self.assertTrue(mesh.is_manifold())

Callers

nothing calls this directly

Calls 3

form_meshFunction · 0.90
cut_to_diskFunction · 0.90
is_manifoldMethod · 0.45

Tested by

no test coverage detected