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

Method test_single_mesh

python/pymesh/tests/test_CSGTree.py:9–13  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7
8class CSGTreeTest(TestCase):
9 def test_single_mesh(self):
10 mesh = generate_box_mesh(np.zeros(3), np.ones(3))
11 tree = CSGTree({"mesh": mesh})
12 self.assert_array_equal(mesh.vertices, tree.vertices)
13 self.assert_array_equal(mesh.faces, tree.faces)

Callers

nothing calls this directly

Calls 3

generate_box_meshFunction · 0.90
CSGTreeClass · 0.90
assert_array_equalMethod · 0.80

Tested by

no test coverage detected