(self)
| 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()) |
nothing calls this directly
no test coverage detected