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

Method test_sphere

python/pymesh/tests/test_VoxelGrid.py:6–15  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4
5class VoxelGridTest(TestCase):
6 def test_sphere(self):
7 mesh = generate_icosphere(2.0, [0.0, 0.0, 0.0])
8 grid = VoxelGrid(0.1)
9 grid.insert_mesh(mesh)
10 grid.create_grid()
11 voxel_mesh = grid.mesh
12
13 self.assertLess(0, voxel_mesh.num_vertices)
14 self.assertLess(0, voxel_mesh.num_faces)
15 self.assertLess(0, voxel_mesh.num_voxels)

Callers

nothing calls this directly

Calls 4

insert_meshMethod · 0.95
create_gridMethod · 0.95
generate_icosphereFunction · 0.90
VoxelGridClass · 0.90

Tested by

no test coverage detected