Regression SALOME_TESTS/Grids/smesh/3D_mesh_HEXA3D_00/C2

Fix isConcave()
This commit is contained in:
eap 2013-11-18 14:59:23 +00:00
parent 45b939fb48
commit 142df328f7

View File

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