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

Method test_box

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

Source from the content-addressed store, hash-verified

15 self.assertLessEqual(bbox_1[1][2], bbox_2[1][2])
16
17 def test_box(self):
18 mesh = generate_box_mesh(
19 np.array([0, 0, 0]), np.array([1, 1, 1]))
20 N = 2
21
22 slices = slice_mesh(mesh, [1, 0, 0], N)
23 self.assertEqual(N, len(slices))
24
25 slices = merge_meshes(slices)
26 self.assert_bbox_is_embedded(slices.bbox, mesh.bbox)
27
28 def test_diag_box(self):
29 mesh = generate_box_mesh(

Callers

nothing calls this directly

Calls 4

generate_box_meshFunction · 0.90
slice_meshFunction · 0.90
merge_meshesFunction · 0.90

Tested by

no test coverage detected