From 7cb520da11016948c2130cad488a40bdf6a147c9 Mon Sep 17 00:00:00 2001 From: rnv Date: Fri, 22 Apr 2011 08:07:38 +0000 Subject: [PATCH] Fix for the "21125: EDF 1233 SMESH: Degradation of precision in a test case for quadratic conversion" issue. --- src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index 2a7766f..9d80e81 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -1641,7 +1641,7 @@ void BLSURFPlugin_BLSURF::Set_NodeOnEdge(SMESHDS_Mesh* meshDS, SMDS_MeshNode* no gp_Pnt curve_pnt = curve->Value( pa ); double dist2 = pnt.SquareDistance( curve_pnt ); double tol = BRep_Tool::Tolerance( edge ); - if ( 1e-12 < dist2 && dist2 <= 2*tol*tol ) // large enough and within tolerance + if ( 1e-14 < dist2 && dist2 <= 1000*tol ) // large enough and within tolerance { curve_pnt.Transform( loc ); meshDS->MoveNode( node, curve_pnt.X(), curve_pnt.Y(), curve_pnt.Z() ); -- 2.39.2