From: eap Date: Mon, 18 Nov 2013 14:59:23 +0000 (+0000) Subject: Regression SALOME_TESTS/Grids/smesh/3D_mesh_HEXA3D_00/C2 X-Git-Tag: V7_3_0a1~45 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=142df328f7b64bec5dd8f1b3259300a86d3461b3;p=modules%2Fsmesh.git Regression SALOME_TESTS/Grids/smesh/3D_mesh_HEXA3D_00/C2 Fix isConcave() --- diff --git a/src/StdMeshers/StdMeshers_ViscousLayers.cxx b/src/StdMeshers/StdMeshers_ViscousLayers.cxx index 277c6e76c..9a9a5387b 100644 --- a/src/StdMeshers/StdMeshers_ViscousLayers.cxx +++ b/src/StdMeshers/StdMeshers_ViscousLayers.cxx @@ -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;