From eebcbeb1831cc9f0c9f18f5f0f46a700822b74c2 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 2 Nov 2018 13:37:48 +0300 Subject: [PATCH] Remesher: prevent failure of the second compute in case of not closed 2D mesh --- src/NETGENPlugin/NETGENPlugin_Remesher_2D.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/NETGENPlugin/NETGENPlugin_Remesher_2D.cxx b/src/NETGENPlugin/NETGENPlugin_Remesher_2D.cxx index c878353..a1f71c2 100644 --- a/src/NETGENPlugin/NETGENPlugin_Remesher_2D.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Remesher_2D.cxx @@ -56,6 +56,13 @@ using namespace nglib; // #endif // extern STLParameters stlparam; // } +namespace nglib +{ +#if defined(NETGEN_V5) && defined(WIN32) + DLL_HEADER +#endif + extern netgen::Array > readedges; +} namespace { @@ -213,6 +220,8 @@ namespace void HoleFiller::AddHoleBorders( Ng_STL_Geometry * ngStlGeo ) { + nglib::readedges.SetSize(0); + for ( size_t i = 0; i < myHole.size(); ++i ) for ( size_t iP = 1; iP < myHole[i].size(); ++iP ) { -- 2.39.2