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

Method assert_bbox_is_embedded

python/pymesh/tests/test_slice_Mesh.py:8–15  ·  view source on GitHub ↗
(self, bbox_1, bbox_2)

Source from the content-addressed store, hash-verified

6
7class SliceMeshTest(TestCase):
8 def assert_bbox_is_embedded(self, bbox_1, bbox_2):
9 self.assertGreaterEqual(bbox_1[0][0], bbox_2[0][0])
10 self.assertGreaterEqual(bbox_1[0][1], bbox_2[0][1])
11 self.assertGreaterEqual(bbox_1[0][2], bbox_2[0][2])
12
13 self.assertLessEqual(bbox_1[1][0], bbox_2[1][0])
14 self.assertLessEqual(bbox_1[1][1], bbox_2[1][1])
15 self.assertLessEqual(bbox_1[1][2], bbox_2[1][2])
16
17 def test_box(self):
18 mesh = generate_box_mesh(

Callers 2

test_boxMethod · 0.95
test_diag_boxMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected