Remesher: prevent failure of the second compute in case of not closed 2D mesh

This commit is contained in:
eap 2018-11-02 13:37:48 +03:00
parent 6d2ab4096a
commit eebcbeb183

View File

@ -56,6 +56,13 @@ using namespace nglib;
// #endif // #endif
// extern STLParameters stlparam; // extern STLParameters stlparam;
// } // }
namespace nglib
{
#if defined(NETGEN_V5) && defined(WIN32)
DLL_HEADER
#endif
extern netgen::Array<netgen::Point<3> > readedges;
}
namespace namespace
{ {
@ -213,6 +220,8 @@ namespace
void HoleFiller::AddHoleBorders( Ng_STL_Geometry * ngStlGeo ) void HoleFiller::AddHoleBorders( Ng_STL_Geometry * ngStlGeo )
{ {
nglib::readedges.SetSize(0);
for ( size_t i = 0; i < myHole.size(); ++i ) for ( size_t i = 0; i < myHole.size(); ++i )
for ( size_t iP = 1; iP < myHole[i].size(); ++iP ) for ( size_t iP = 1; iP < myHole[i].size(); ++iP )
{ {