fix OCC meshing with nglib

This commit is contained in:
mhochsteger@cerbsim.com 2022-01-14 11:47:22 +01:00
parent 2a77e9635a
commit 439415bffe
2 changed files with 1 additions and 5 deletions

View File

@ -728,6 +728,7 @@ namespace netgen
static Timer t1("Surface Meshing"); RegionTimer regt(t1); static Timer t1("Surface Meshing"); RegionTimer regt(t1);
const char* savetask = multithread.task; const char* savetask = multithread.task;
multithread.task = "Mesh Surface"; multithread.task = "Mesh Surface";
mesh.ClearFaceDescriptors();
size_t n_failed_faces = 0; size_t n_failed_faces = 0;
Array<int, PointIndex> glob2loc(mesh.GetNP()); Array<int, PointIndex> glob2loc(mesh.GetNP());

View File

@ -910,11 +910,6 @@ namespace nglib
// parameters structure // parameters structure
mp->Transfer_Parameters(); mp->Transfer_Parameters();
// Only go into surface meshing if the face descriptors have already been added
if(!me->GetNFD())
return NG_ERROR;
numpoints = me->GetNP(); numpoints = me->GetNP();
// Initially set up only for surface meshing without any optimisation // Initially set up only for surface meshing without any optimisation