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

Method save_header

src/IO/MshSaver.cpp:44–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void MshSaver::save_header() {
45 if (!m_binary) {
46 fout << "$MeshFormat" << std::endl;
47 fout << "2.2 0 " << sizeof(double) << std::endl;
48 fout << "$EndMeshFormat" << std::endl;
49 } else {
50 fout << "$MeshFormat" << std::endl;
51 fout << "2.2 1 " << sizeof(double) << std::endl;
52 int one = 1;
53 fout.write((char*)&one, sizeof(int));
54 fout << "$EndMeshFormat" << std::endl;
55 }
56 fout.flush();
57}
58
59void MshSaver::save_nodes(const VectorF& nodes) {
60 // Save nodes.

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected