From: eap Date: Thu, 23 Dec 2010 09:19:03 +0000 (+0000) Subject: 0020832: EDF 1359 SMESH : Automatic meshing of boundary layers X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=402c6e4cde401c26e6a9b5137a6892193a57a66c;p=modules%2Fsmesh.git 0020832: EDF 1359 SMESH : Automatic meshing of boundary layers In CheckNodeUV(), transform back the returned projection point --- diff --git a/src/SMESH/SMESH_MesherHelper.cxx b/src/SMESH/SMESH_MesherHelper.cxx index e8b20501b..495747cb1 100644 --- a/src/SMESH/SMESH_MesherHelper.cxx +++ b/src/SMESH/SMESH_MesherHelper.cxx @@ -518,6 +518,7 @@ bool SMESH_MesherHelper::CheckNodeUV(const TopoDS_Face& F, { setPosOnShapeValidity( shapeID, false ); if ( !infinit && distXYZ ) { + surfPnt.Transform( loc ); distXYZ[0] = dist; distXYZ[1] = surfPnt.X(); distXYZ[2] = surfPnt.Y(); distXYZ[3]=surfPnt.Z(); } @@ -535,6 +536,7 @@ bool SMESH_MesherHelper::CheckNodeUV(const TopoDS_Face& F, surfPnt = surface->Value( U, V ); dist = nodePnt.Distance( surfPnt ); if ( distXYZ ) { + surfPnt.Transform( loc ); distXYZ[0] = dist; distXYZ[1] = surfPnt.X(); distXYZ[2] = surfPnt.Y(); distXYZ[3]=surfPnt.Z(); } @@ -721,6 +723,7 @@ bool SMESH_MesherHelper::CheckNodeU(const TopoDS_Edge& E, gp_Pnt curvPnt = curve->Value( u ); double dist = nodePnt.Distance( curvPnt ); if ( distXYZ ) { + curvPnt.Transform( loc ); distXYZ[0] = dist; distXYZ[1] = curvPnt.X(); distXYZ[2] = curvPnt.Y(); distXYZ[3]=curvPnt.Z(); } @@ -749,6 +752,7 @@ bool SMESH_MesherHelper::CheckNodeU(const TopoDS_Edge& E, curvPnt = curve->Value( u ); dist = nodePnt.Distance( curvPnt ); if ( distXYZ ) { + curvPnt.Transform( loc ); distXYZ[0] = dist; distXYZ[1] = curvPnt.X(); distXYZ[2] = curvPnt.Y(); distXYZ[3]=curvPnt.Z(); }