From: eap Date: Mon, 21 Apr 2014 09:17:46 +0000 (+0400) Subject: SALOME_TESTS/Grids/smesh/bugs_07/H5 X-Git-Tag: V7_4_0rc1~41 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=71bd4d33442d13a79502c92209d83fb16b2d5c21;p=modules%2Fsmesh.git SALOME_TESTS/Grids/smesh/bugs_07/H5 Use 5 < angles < 85 degrees to find out a correct orientation --- diff --git a/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx b/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx index 3b0869eb4..9b1d04982 100644 --- a/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx +++ b/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx @@ -4076,7 +4076,8 @@ bool StdMeshers_Quadrangle_2D::check() const TopoDS_Edge& e1 = wire->Edge( iPrev ); const TopoDS_Edge& e2 = wire->Edge( i ); double angle = myHelper->GetAngle( e1, e2, geomFace ); - if ( maxAngle < angle && 5.* M_PI/180 < angle ) + if (( maxAngle < angle ) && + ( 5.* M_PI/180 < angle && angle < 85.* M_PI/180 )) { maxAngle = angle; iVertex = i;