diff --git a/src/BOPTools/BOPTools_AlgoTools3D.cxx b/src/BOPTools/BOPTools_AlgoTools3D.cxx index 4b3365455f..1c151634ee 100644 --- a/src/BOPTools/BOPTools_AlgoTools3D.cxx +++ b/src/BOPTools/BOPTools_AlgoTools3D.cxx @@ -91,8 +91,8 @@ static const TopoDS_Face& aF) { Standard_Boolean bIsUPeriodic, bIsVPeriodic, bIsLeft = Standard_False; - Standard_Real aTol, a, b, anUPeriod, anVPeriod, aT, anU, dU=1.e-7, anU1, - anV, dV=1.e-7, anV1; + Standard_Real aTol, a, b, anUPeriod, anVPeriod, aT, anU, dU/*=1.e-7*/, anU1, + anV, dV/*=1.e-7*/, anV1; Standard_Real aScPr; gp_Pnt2d aP2D; gp_Vec2d aVec2D; @@ -159,6 +159,10 @@ static anU1=anU; anV1=anV; // + GeomAdaptor_Surface aGAS(aS); + dU = aGAS.UResolution(aTol); + dV = aGAS.VResolution(aTol); + // if (anUPeriod > 0.){ if (fabs (anU) < dU) { bIsLeft=Standard_True;