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

Method test_simple

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

Source from the content-addressed store, hash-verified

6
7class 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)

Callers

nothing calls this directly

Calls 3

compressMethod · 0.45
decompressMethod · 0.45

Tested by

no test coverage detected