(self)
| 342 | self.assertEqual(1, mesh.num_components) |
| 343 | |
| 344 | def test_face_edge_touch(self): |
| 345 | mesh_1 = generate_box_mesh( |
| 346 | np.array([0, 0, 0]), np.array([1, 1, 1])) |
| 347 | |
| 348 | rot = Quaternion.fromData( |
| 349 | np.array([1, 0, 1], dtype=float), |
| 350 | np.array([0, 0, 1], dtype=float)) |
| 351 | mesh_2 = form_mesh( |
| 352 | np.dot(rot.to_matrix(), mesh_1.vertices.T).T + |
| 353 | np.array([0.5, 0.5, 1.0]), |
| 354 | mesh_1.faces) |
| 355 | |
| 356 | mesh = boolean(mesh_1, mesh_2, "union", "igl") |
| 357 | |
| 358 | self.assertEqual(17, mesh.num_vertices) |
| 359 | self.assertEqual(30, mesh.num_faces) |
| 360 | self.assertFalse(mesh.is_manifold()) |
| 361 | self.assertTrue(mesh.is_closed()) |
| 362 | self.assertEqual(1, mesh.num_components) |
| 363 | |
| 364 | #@unittest.skip("this causes crash") |
| 365 | def test_union_with_rotated_self(self): |
nothing calls this directly
no test coverage detected