Interface can now give curve order of mesh

This commit is contained in:
Lukas 2020-03-06 10:17:09 +01:00
parent 1d62ca31ac
commit 672ce3f3f2
2 changed files with 5 additions and 0 deletions

View File

@ -343,6 +343,7 @@ namespace netgen
void SetRefinementFlag (size_t elnr, bool flag);
void Curve (int order);
int GetCurveOrder ();
void Refine (NG_REFINEMENT_TYPE reftype,
void (*taskmanager)(function<void(int,int)>) = &DummyTaskManager2,

View File

@ -1134,6 +1134,10 @@ namespace netgen
mesh->BuildCurvedElements(order);
}
int Ngx_Mesh :: GetCurveOrder ()
{
return mesh->GetCurvedElements().GetOrder();
}
template <>
DLL_HEADER void Ngx_Mesh :: SetRefinementFlag<2> (size_t elnr, bool flag)