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

Method test_ply

python/pymesh/tests/test_meshio.py:28–38  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26 self.assert_mesh_equal(mesh, mesh2)
27
28 def test_ply(self):
29 mesh = self.get_box_mesh()
30 mesh.add_attribute("vertex_index")
31
32 mesh2 = self.write_and_load(mesh, "cube.ply",
33 attr_names=["vertex_index"])
34 self.assert_mesh_equal(mesh, mesh2, attr_names=["vertex_index"])
35
36 mesh3 = self.write_and_load(mesh, "cube.ply",
37 attr_names=["vertex_index"], use_ascii=True)
38 self.assert_mesh_equal(mesh, mesh3, attr_names=["vertex_index"])
39
40 def test_msh(self):
41 mesh = generate_box_mesh(np.zeros(3), np.ones(3))

Callers

nothing calls this directly

Calls 4

get_box_meshMethod · 0.95
write_and_loadMethod · 0.95
assert_mesh_equalMethod · 0.80
add_attributeMethod · 0.45

Tested by

no test coverage detected