(self)
| 15 | self.assert_array_almost_equal(mesh.bbox, mesh2.bbox) |
| 16 | |
| 17 | def test_point_cloud(self): |
| 18 | vertices = numpy.random.rand(100, 3) |
| 19 | mesh = pymesh.form_mesh(vertices, np.zeros((0, 3))) |
| 20 | data = pymesh.compress(mesh) |
| 21 | mesh2 = pymesh.decompress(data) |
| 22 | |
| 23 | self.assertEqual(mesh.num_vertices, mesh2.num_vertices) |
| 24 | self.assertEqual(mesh.num_faces, mesh2.num_faces) |
| 25 | self.assert_array_almost_equal(mesh.bbox, mesh2.bbox) |
| 26 | |
| 27 | def test_2D(self): |
| 28 | vertices = numpy.array([ |
nothing calls this directly
no test coverage detected