Skip to content
Snippets Groups Projects
Commit 1fb6573b authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

pp

parent 99a31ce4
No related branches found
No related tags found
No related merge requests found
...@@ -72,7 +72,7 @@ int GModel::writeKEY(const std::string &name, int saveAll, ...@@ -72,7 +72,7 @@ int GModel::writeKEY(const std::string &name, int saveAll,
for(std::size_t j = 0; j < entities[i]->mesh_vertices.size(); j++) for(std::size_t j = 0; j < entities[i]->mesh_vertices.size(); j++)
entities[i]->mesh_vertices[j]->writeKEY(fp, scalingFactor); entities[i]->mesh_vertices[j]->writeKEY(fp, scalingFactor);
if(!(saveAll & 0x2)) // save or ignore Vertex, not in GUI if(!(saveAll & 0x2)) // save or ignore points (not in GUI)
for(viter it = firstVertex(); it != lastVertex(); ++it) { for(viter it = firstVertex(); it != lastVertex(); ++it) {
writeElementsKEY(fp, *it, (*it)->points, saveAll & 0x1); writeElementsKEY(fp, *it, (*it)->points, saveAll & 0x1);
} }
...@@ -85,7 +85,7 @@ int GModel::writeKEY(const std::string &name, int saveAll, ...@@ -85,7 +85,7 @@ int GModel::writeKEY(const std::string &name, int saveAll,
writeElementsKEY(fp, *it, (*it)->triangles, saveAll & 0x10); writeElementsKEY(fp, *it, (*it)->triangles, saveAll & 0x10);
writeElementsKEY(fp, *it, (*it)->quadrangles, saveAll & 0x10); writeElementsKEY(fp, *it, (*it)->quadrangles, saveAll & 0x10);
} }
if(!(saveAll & 0x80)) // save or ignore surface if(!(saveAll & 0x80)) // save or ignore volume
for(riter it = firstRegion(); it != lastRegion(); ++it) { for(riter it = firstRegion(); it != lastRegion(); ++it) {
writeElementsKEY(fp, *it, (*it)->tetrahedra, saveAll & 0x40); writeElementsKEY(fp, *it, (*it)->tetrahedra, saveAll & 0x40);
writeElementsKEY(fp, *it, (*it)->hexahedra, saveAll & 0x40); writeElementsKEY(fp, *it, (*it)->hexahedra, saveAll & 0x40);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment