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

Method test_intersecting_cubes

python/pymesh/tests/test_outerhull.py:37–45  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

35 self.assert_valid_attributes(mesh, outer_hull)
36
37 def test_intersecting_cubes(self):
38 mesh_1 = generate_box_mesh(
39 np.array([0, 0, 0]), np.array([2, 2, 2]))
40 mesh_2 = generate_box_mesh(
41 np.array([1, 1, 1]), np.array([3, 3, 3]))
42 mesh = merge_meshes((mesh_1, mesh_2))
43 outer_hull = compute_outer_hull(mesh)
44 self.assertTrue(outer_hull.is_closed())
45 self.assert_valid_attributes(mesh, outer_hull)
46
47 def test_nested_cubes(self):
48 mesh_1 = generate_box_mesh(

Callers

nothing calls this directly

Calls 5

generate_box_meshFunction · 0.90
merge_meshesFunction · 0.90
compute_outer_hullFunction · 0.90
is_closedMethod · 0.45

Tested by

no test coverage detected