]> SALOME platform Git repositories - plugins/netgenplugin.git/commitdiff
Salome HOME
Remesher: prevent failure of the second compute in case of not closed 2D mesh gpusph_v2
authoreap <eap@opencascade.com>
Fri, 2 Nov 2018 10:37:48 +0000 (13:37 +0300)
committereap <eap@opencascade.com>
Fri, 2 Nov 2018 10:37:48 +0000 (13:37 +0300)
src/NETGENPlugin/NETGENPlugin_Remesher_2D.cxx

index c878353e6968d438549595116a06b2ec371f92dd..a1f71c2ba31b57ad6df5d7f8bf9e21eeb1d0f3ff 100644 (file)
@@ -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<netgen::Point<3> > 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 )
       {