(self)
| 6 | |
| 7 | class TestCompression(TestCase): |
| 8 | def test_simple(self): |
| 9 | mesh = pymesh.generate_icosphere(1.0, np.zeros(3), 2) |
| 10 | data = pymesh.compress(mesh) |
| 11 | mesh2 = pymesh.decompress(data) |
| 12 | |
| 13 | self.assertEqual(mesh.num_vertices, mesh2.num_vertices) |
| 14 | self.assertEqual(mesh.num_faces, mesh2.num_faces) |
| 15 | self.assert_array_almost_equal(mesh.bbox, mesh2.bbox) |
| 16 | |
| 17 | def test_point_cloud(self): |
| 18 | vertices = numpy.random.rand(100, 3) |
nothing calls this directly
no test coverage detected