(self)
| 4 | |
| 5 | class 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) |
nothing calls this directly
no test coverage detected