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

Method test_eps_corner_intersection

python/pymesh/tests/test_boolean.py:221–235  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

219 self.assertEqual(1, mesh.num_components)
220
221 def test_eps_corner_intersection(self):
222 eps = np.finfo(np.float64).eps
223 mesh_1 = generate_box_mesh(
224 np.array([0, 0, 0]), np.array([1, 1, 1]))
225 mesh_2 = generate_box_mesh(
226 np.array([1, 1, 1]) - eps, np.array([3, 3, 3]))
227
228 mesh = boolean(
229 mesh_1, mesh_2,
230 "intersection", "igl")
231 self.assertEqual(8, mesh.num_vertices)
232 self.assertEqual(12, mesh.num_faces)
233 self.assertTrue(mesh.is_manifold())
234 self.assertTrue(mesh.is_closed())
235 self.assertEqual(1, mesh.num_components)
236
237 def test_eps_edge_intersection(self):
238 eps = np.finfo(np.float64).eps

Callers

nothing calls this directly

Calls 4

generate_box_meshFunction · 0.90
booleanFunction · 0.90
is_manifoldMethod · 0.45
is_closedMethod · 0.45

Tested by

no test coverage detected