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

Method save_mesh

tools/Wires/Interfaces/PeriodicExploration.cpp:190–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190void PeriodicExploration::save_mesh(const std::string& filename) const {
191 auto flattened_vertices = MatrixUtils::flatten<VectorF>(m_vertices);
192 auto flattened_faces = MatrixUtils::flatten<VectorI>(m_faces);
193 auto flattened_voxels = MatrixUtils::flatten<VectorI>(m_voxels);
194
195 MeshWriter::Ptr writer = MeshWriter::create(filename);
196 writer->write(flattened_vertices, flattened_faces, flattened_voxels,
197 m_vertices.cols(), m_faces.cols(), m_voxels.cols());
198}
199

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected