]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
Fix for the "21125: EDF 1233 SMESH: Degradation of precision in a test case for quadr...
authorrnv <rnv@opencascade.com>
Fri, 22 Apr 2011 08:07:38 +0000 (08:07 +0000)
committerrnv <rnv@opencascade.com>
Fri, 22 Apr 2011 08:07:38 +0000 (08:07 +0000)
src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx

index 2a7766f0b18ce74224d3a33854ba3aae2330fd59..9d80e81bbea710c7775c267e0b28c7dc72bffd24 100644 (file)
@@ -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() );