From: Paul RASCLE Date: Wed, 24 Jan 2018 16:00:52 +0000 (+0100) Subject: workaround for bug #16280 / #1514: tolerance for nodes on the border fixed to 0.01... X-Git-Tag: HYDRO_V2_0_0~30 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9b8e3d3253c3e71420379e7ab86e60b24f508942;p=modules%2Fhydro.git 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! --- 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;