]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Regression SALOME_TESTS/Grids/smesh/3D_mesh_HEXA3D_00/C2
authoreap <eap@opencascade.com>
Mon, 18 Nov 2013 14:59:23 +0000 (14:59 +0000)
committereap <eap@opencascade.com>
Mon, 18 Nov 2013 14:59:23 +0000 (14:59 +0000)
Fix isConcave()

src/StdMeshers/StdMeshers_ViscousLayers.cxx

index 277c6e76c1c222d140d79421571f8afada749433..9a9a5387b5fc3745e78571bfa37dde1a3bbae173 100644 (file)
@@ -801,10 +801,10 @@ namespace
         double u1 = intervals( i );
         double u2 = intervals( i+1 );
         curve.D2( 0.5*( u1+u2 ), p, drv1, drv2 );
-        double cross = drv2 ^ drv1;
+        double cross = drv2 * drv1; //drv2 ^ drv1;
         if ( E.Orientation() == TopAbs_REVERSED )
           cross = -cross;
-        isConvex = ( cross 1e-9 );
+        isConvex = ( cross > -1e-9 );
       }
       // check if concavity is strong enough to care about it
       //const double maxAngle = 5 * Standard_PI180;