diff --git a/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx b/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx index 00d66594d..136f08527 100644 --- a/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx @@ -47,7 +47,6 @@ // OCCT Includes #include #include -#include #include #include #include @@ -65,24 +64,29 @@ #include #include #include + #include +#include #include #include #include #include -#include #include #include + +#include #include + +#include #include #include #include #include -#include #include -#include +#include #include #include + #include // CAREFUL ! position of this file is critic : see Lucien PIGNOLONI / OCC #include @@ -3031,7 +3035,10 @@ Handle(TColStd_HArray1OfReal) GEOMImpl_IMeasureOperations::XYZtoUV } // Face tolerance - Standard_Real aTol = BRep_Tool::Tolerance(F); + ShapeAnalysis_ShapeTolerance sat; + sat.InitTolerance(); + sat.AddTolerance(F); + Standard_Real aTol = sat.GlobalTolerance(1); Standard_Real squareTolerance = aTol * aTol; // Compute parameters