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

Method save_mesh

src/IO/MshSaver.cpp:30–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30void MshSaver::save_mesh(const VectorF& nodes, const VectorI& elements,
31 size_t dim, MshSaver::ElementType type) {
32 if (dim != 2 && dim != 3) {
33 std::stringstream err_msg;
34 err_msg << dim << "D mesh is not supported!" << std::endl;
35 throw NotImplementedError(err_msg.str());
36 }
37 m_dim = dim;
38
39 save_header();
40 save_nodes(nodes);
41 save_elements(elements, type);
42}
43
44void MshSaver::save_header() {
45 if (!m_binary) {

Callers 15

writeMethod · 0.45
write_surface_meshMethod · 0.45
write_volume_meshMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
carve_meshFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 2

NotImplementedErrorClass · 0.85
strMethod · 0.45

Tested by

no test coverage detected