-// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
SMESHDS_Mesh* tgtMesh = theMesh.GetMeshDS();
const TopoDS_Edge& geomEdge = TopoDS::Edge( theShape );
- const double edgeTol = BRep_Tool::Tolerance( geomEdge );
- const int shapeID = tgtMesh->ShapeToIndex( geomEdge );
+ const double edgeTol = helper.MaxTolerance( geomEdge );
+ const int shapeID = tgtMesh->ShapeToIndex( geomEdge );
double geomTol = Precision::Confusion();
} // loop on groups
if ( n2n->empty())
- return error("Empty source groups");
+ return error("Source groups are empty or mismatching geometry");
// check if the whole geom edge is covered by imported segments;
// the check consist in passing by segments from one vetrex node to another
if ( srcGroups.empty() )
return error("Invalid source groups");
- vector<int> aVec(SMDSEntity_Last,0);
+ vector<smIdType> aVec(SMDSEntity_Last,0);
bool toCopyMesh, toCopyGroups;
_sourceHyp->GetCopySourceMesh(toCopyMesh, toCopyGroups);