From: eap Date: Wed, 6 Apr 2011 11:06:53 +0000 (+0000) Subject: 0021218: EDF 1832 SMESH: Regression when computing a mesh X-Git-Tag: V6_3_0a1~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ffc4f7e61800c52124939fe0eea777f265904c9c;p=modules%2Fsmesh.git 0021218: EDF 1832 SMESH: Regression when computing a mesh fix FindFaceAssociation() using UV --- diff --git a/src/StdMeshers/StdMeshers_ProjectionUtils.cxx b/src/StdMeshers/StdMeshers_ProjectionUtils.cxx index dd7db409c..276d37640 100644 --- a/src/StdMeshers/StdMeshers_ProjectionUtils.cxx +++ b/src/StdMeshers/StdMeshers_ProjectionUtils.cxx @@ -1302,9 +1302,10 @@ int StdMeshers_ProjectionUtils::FindFaceAssociation(const TopoDS_Face& face1, gp_Pnt2d v1f2UV = BRep_Tool::Parameters( VV2[1], face2 ); gp_Vec2d v01f1Vec( v0f1UV, v1f1UV ); gp_Vec2d v01f2Vec( v0f2UV, v1f2UV ); - if ( Abs( v01f1Vec.X()-v01f2Vec.X()) < vTolUV && Abs( v01f1Vec.Y()-v01f2Vec.Y()) < vTolUV ) + if ( Abs( v01f1Vec.X()-v01f2Vec.X()) < vTolUV && + Abs( v01f1Vec.Y()-v01f2Vec.Y()) < vTolUV ) { - if ( i_ok_wire_algo != 1 ) + if ( !OK /*i_ok_wire_algo != 1*/ ) { edges1.clear(); edges2.clear();