From 439415bffe7c087a395b5ac316665dff54050cb1 Mon Sep 17 00:00:00 2001 From: "mhochsteger@cerbsim.com" Date: Fri, 14 Jan 2022 11:47:22 +0100 Subject: [PATCH] fix OCC meshing with nglib --- libsrc/meshing/basegeom.cpp | 1 + nglib/nglib.cpp | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/libsrc/meshing/basegeom.cpp b/libsrc/meshing/basegeom.cpp index 78bd21b7..ae4130c4 100644 --- a/libsrc/meshing/basegeom.cpp +++ b/libsrc/meshing/basegeom.cpp @@ -728,6 +728,7 @@ namespace netgen static Timer t1("Surface Meshing"); RegionTimer regt(t1); const char* savetask = multithread.task; multithread.task = "Mesh Surface"; + mesh.ClearFaceDescriptors(); size_t n_failed_faces = 0; Array glob2loc(mesh.GetNP()); diff --git a/nglib/nglib.cpp b/nglib/nglib.cpp index 56e19fe8..9be8ddbe 100644 --- a/nglib/nglib.cpp +++ b/nglib/nglib.cpp @@ -910,11 +910,6 @@ namespace nglib // parameters structure 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(); // Initially set up only for surface meshing without any optimisation