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

Method test_point_cloud

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

Source from the content-addressed store, hash-verified

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([

Callers

nothing calls this directly

Calls 4

form_meshMethod · 0.45
compressMethod · 0.45
decompressMethod · 0.45

Tested by

no test coverage detected