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

Method write

src/IO/OBJWriter.cpp:111–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void OBJWriter::write(
112 const VectorF& vertices,
113 const VectorI& faces,
114 const VectorI& voxels,
115 size_t dim, size_t vertex_per_face, size_t vertex_per_voxel) {
116 using namespace OBJWriterHelper;
117 std::ofstream fout(m_filename.c_str());
118 if (!is_anonymous()) {
119 fout << "# Generated with PyMesh" << std::endl;
120 }
121
122 write_vertices(fout, vertices, dim);
123 write_faces(fout, faces, vertex_per_face);
124 fout.close();
125}

Callers

nothing calls this directly

Calls 2

write_verticesFunction · 0.85
write_facesFunction · 0.85

Tested by

no test coverage detected