}
else if (SameP.IsDone()) {
Standard_Real tolreached = SameP.TolReached();
- if(tolreached < error) {
+ if(tolreached <= error) {
curPC = SameP.Curve2d();
updatepc = Standard_True;
maxdist = Max(maxdist,tolreached);
// Modified by skv - Thu Jun 3 12:39:19 2004 OCC5898 Begin
if (!IsSameP) {
- if (anEdgeTol > error) {
+ if (anEdgeTol >= error) {
maxdist = Max(maxdist, anEdgeTol);
IsSameP = Standard_True;
}