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

Function save_mesh

tools/Wires/Misc/BoundaryRemesher.cpp:62–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 }
61
62 void save_mesh(const std::string& filename,
63 const MatrixFr& vertices, const MatrixIr& faces) {
64 auto flattened_vertices = MatrixUtils::flatten<VectorF>(vertices);
65 auto flattened_faces = MatrixUtils::flatten<VectorI>(faces);
66 VectorI voxels = VectorI::Zero(0);
67
68 MeshWriter::Ptr writer = MeshWriter::create(filename);
69 writer->write(flattened_vertices, flattened_faces, voxels,
70 vertices.cols(), faces.cols(), 0);
71 }
72}
73using namespace BoundaryRemsherHelper;
74

Callers 14

TEST_FFunction · 0.50
save_meshMethod · 0.50
TEST_FFunction · 0.50
TEST_FFunction · 0.50
TEST_FFunction · 0.50
TEST_FFunction · 0.50
TEST_FFunction · 0.50
TEST_FFunction · 0.50
TEST_FFunction · 0.50
TEST_FFunction · 0.50
write_and_loadMethod · 0.50

Calls 1

writeMethod · 0.45

Tested by 13

TEST_FFunction · 0.40
save_meshMethod · 0.40
TEST_FFunction · 0.40
TEST_FFunction · 0.40
TEST_FFunction · 0.40
TEST_FFunction · 0.40
TEST_FFunction · 0.40
TEST_FFunction · 0.40
TEST_FFunction · 0.40
TEST_FFunction · 0.40
write_and_loadMethod · 0.40
TEST_FFunction · 0.40