From 142df328f7b64bec5dd8f1b3259300a86d3461b3 Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 18 Nov 2013 14:59:23 +0000 Subject: [PATCH] Regression SALOME_TESTS/Grids/smesh/3D_mesh_HEXA3D_00/C2 Fix isConcave() --- src/StdMeshers/StdMeshers_ViscousLayers.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2