]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
small but important fix
authoreap <eap@opencascade.com>
Mon, 12 Mar 2018 13:31:25 +0000 (16:31 +0300)
committereap <eap@opencascade.com>
Mon, 12 Mar 2018 13:31:25 +0000 (16:31 +0300)
src/SMESHUtils/SMESH_Offset.cxx

index efd648a74092eb22624f7e6410f2eff4a8f11324..564a09f69d598112ead34121ae574f0edfbfd9f7 100644 (file)
@@ -682,10 +682,9 @@ namespace
           dot *= -1;
         if ( dot * theSign < 0 )
         {
-          useOneNormal = true;
-          // gp_XYZ p1 = oldXYZ + faces[ i ].Norm()     * theOffset;
-          // gp_XYZ p2 = oldXYZ + faces[ iPrev ].Norm() * theOffset;
-          // useOneNormal = ( p1 - p2 ).SquareModulus() > theTol * theTol;
+          gp_XYZ p1 = oldXYZ + faces[ i ].Norm()     * theOffset;
+          gp_XYZ p2 = oldXYZ + faces[ iPrev ].Norm() * theOffset;
+          useOneNormal = ( p1 - p2 ).SquareModulus() > 1e-12;
         }
       }
       if ( useOneNormal && theNewNode->isMarked() )