From 9b8e3d3253c3e71420379e7ab86e60b24f508942 Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Wed, 24 Jan 2018 17:00:52 +0100 Subject: [PATCH] workaround for bug #16280 / #1514: tolerance for nodes on the border fixed to 0.01 instead of 1.E-7, which is absolutely not necessary! --- src/HYDROData/HYDROData_Tool.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/HYDROData/HYDROData_Tool.cxx b/src/HYDROData/HYDROData_Tool.cxx index e3a96059..750b8973 100644 --- a/src/HYDROData/HYDROData_Tool.cxx +++ b/src/HYDROData/HYDROData_Tool.cxx @@ -188,6 +188,9 @@ TopAbs_State HYDROData_Tool::ComputePointState( const gp_XY& theXY, const TopoDS Standard_Real aTol = BRep_Tool::Tolerance(theFace); BRepAdaptor_Surface Ads ( theFace, Standard_False ); Standard_Real toluv = Min ( Ads.UResolution(aTol), Ads.VResolution(aTol) ); + if (toluv < 0.01) + toluv = 0.01; // there is no need to be more precise than 1cm a any case ! + // another solution could be to compute a tolerance related to the distance between the border nodes const gp_Pln& aPlane = Ads.Surface().Plane(); gp_Pnt aPnt(theXY.X(), theXY.Y(), 0.); Standard_Real aU1, aV1; -- 2.39.2