-// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
namespace nglib
{
NETGENPLUGIN_DLL_HEADER
+#ifdef NETGEN_V6
+ extern netgen::NgArray<netgen::Point<3> > readedges;
+#else
extern netgen::Array<netgen::Point<3> > readedges;
+#endif
}
namespace
{
// define tolerance
double tol, len, sumLen = 0, minLen = 1e100;
- int nbSeg = 0;
+ size_t nbSeg = 0;
for ( size_t i = 0; i < holes.size(); ++i )
{
nbSeg += holes[i].size();
p1 = p2;
}
}
- double avgLen = sumLen / nbSeg;
+ double avgLen = sumLen / double( nbSeg );
if ( minLen > 1e-5 * avgLen )
tol = 0.1 * minLen; // minLen is not degenerate
else
gp_XYZ normal;
if ( SMESH_MeshAlgos::FaceNormal( f, normal ))
{
- TIDSortedElemSet allFaces;
- editor.Reorient2D( allFaces, normal, f );
+ TIDSortedElemSet allFaces, refFaces = { f };
+ editor.Reorient2D( allFaces, normal, refFaces, /*allowNonManifold=*/true );
break;
}
}
}
// find existing groups
- const char* theNamePrefix = "Surface_";
- const int theNamePrefixLen = strlen( theNamePrefix );
+ const char* theNamePrefix = "Surface_";
+ const size_t theNamePrefixLen = strlen( theNamePrefix );
std::vector< SMESHDS_Group* > groups;
if ( hyp && hyp->GetMakeGroupsOfSurfaces() )
{