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

Method write

src/IO/NodeWriter.cpp:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void NodeWriter::write(
39 const VectorF& vertices,
40 const VectorI& faces,
41 const VectorI& voxels,
42 size_t dim, size_t vertex_per_face, size_t vertex_per_voxel) {
43 Mesh::Ptr mesh = MeshFactory()
44 .load_data(vertices, faces, voxels, dim, vertex_per_face, vertex_per_voxel)
45 .create();
46 write_mesh(*mesh);
47}
48
49void NodeWriter::write_node_file(const std::string& filename, Mesh& mesh) {
50 const size_t num_vertices = mesh.get_num_vertices();

Callers

nothing calls this directly

Calls 3

MeshFactoryClass · 0.50
createMethod · 0.45
load_dataMethod · 0.45

Tested by

no test coverage detected