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

Method write

src/IO/PLYWriter.cpp:72–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void PLYWriter::write(
73 const VectorF& vertices,
74 const VectorI& faces,
75 const VectorI& voxels,
76 size_t dim, size_t vertex_per_face, size_t vertex_per_voxel) {
77 if (m_attr_names.size() != 0) {
78 std::cerr << "Warning: all attributes are ignored" << std::endl;
79 m_attr_names.clear();
80 }
81
82 Mesh::Ptr mesh = MeshFactory()
83 .load_data(vertices, faces, voxels, dim, vertex_per_face, vertex_per_voxel)
84 .create();
85 write_mesh(*mesh);
86}
87
88void PLYWriter::regroup_attribute_names(Mesh& mesh) {
89 const size_t num_vertices = mesh.get_num_vertices();

Callers 14

save_mesh_rawFunction · 0.45
save_svgFunction · 0.45
save_headerMethod · 0.45
save_nodesMethod · 0.45
save_elementsMethod · 0.45
save_scalar_fieldMethod · 0.45
save_vector_fieldMethod · 0.45
SaveArrayAsNumpyFunction · 0.45
mainFunction · 0.45

Calls 5

MeshFactoryClass · 0.50
sizeMethod · 0.45
clearMethod · 0.45
createMethod · 0.45
load_dataMethod · 0.45

Tested by

no test coverage detected