mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-26 21:00:34 +05:00
store geometry with mesh, if available
This commit is contained in:
parent
1d9f0ae95c
commit
055031ce0d
@ -1096,6 +1096,8 @@ void Ng_HighOrder (int order, bool rational)
|
||||
(&const_cast<Refinement&> (ng_geometry -> GetRefinement()),
|
||||
order, rational);
|
||||
*/
|
||||
if (!mesh->GetGeometry())
|
||||
throw NgException ("don't have a geometry for mesh curving");
|
||||
mesh->BuildCurvedElements
|
||||
(&const_cast<Refinement&> (mesh->GetGeometry()->GetRefinement()),
|
||||
order, rational);
|
||||
|
@ -768,6 +768,9 @@ namespace netgen
|
||||
}
|
||||
}
|
||||
|
||||
outfile << endl << endl << "endmesh" << endl << endl;
|
||||
if (geometry)
|
||||
geometry -> SaveToMeshFile (outfile);
|
||||
}
|
||||
|
||||
|
||||
|
@ -305,9 +305,9 @@ namespace netgen
|
||||
outfile = new ofstream (filename.c_str());
|
||||
|
||||
mesh -> Save (*outfile);
|
||||
*outfile << endl << endl << "endmesh" << endl << endl;
|
||||
// *outfile << endl << endl << "endmesh" << endl << endl;
|
||||
|
||||
if (ng_geometry)
|
||||
if (ng_geometry && !mesh->GetGeometry())
|
||||
ng_geometry -> SaveToMeshFile (*outfile);
|
||||
|
||||
delete outfile;
|
||||
|
Loading…
Reference in New Issue
Block a user