From ffc4f7e61800c52124939fe0eea777f265904c9c Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 6 Apr 2011 11:06:53 +0000 Subject: [PATCH] 0021218: EDF 1832 SMESH: Regression when computing a mesh fix FindFaceAssociation() using UV --- src/StdMeshers/StdMeshers_ProjectionUtils.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(); -- 2.30.2