From: eap Date: Fri, 2 Nov 2018 10:37:48 +0000 (+0300) Subject: Remesher: prevent failure of the second compute in case of not closed 2D mesh X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fgpusph_v2;p=plugins%2Fnetgenplugin.git Remesher: prevent failure of the second compute in case of not closed 2D mesh --- 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 ) {