From: eap Date: Wed, 28 Feb 2007 15:05:07 +0000 (+0000) Subject: PAL13460 (PAL EDF 301 force the mesh to go through a point) X-Git-Tag: V3_2_6a1~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d29de81e16b391480b2ecef9c032a6eac680af80;p=modules%2Fsmesh.git PAL13460 (PAL EDF 301 force the mesh to go through a point) precise node param on edge --- diff --git a/src/StdMeshers/StdMeshers_FaceSide.cxx b/src/StdMeshers/StdMeshers_FaceSide.cxx index 081d2a79f..0ceabc89b 100644 --- a/src/StdMeshers/StdMeshers_FaceSide.cxx +++ b/src/StdMeshers/StdMeshers_FaceSide.cxx @@ -263,7 +263,8 @@ const vector& StdMeshers_FaceSide::GetUVPtStruct(bool isXConst, } else { double r = ( uvPt.normParam - prevNormPar )/ paramSize; - uvPt.param = myFirst[EdgeIndex] * ( 1 - r ) + myLast[EdgeIndex] * r; +// uvPt.param = myFirst[EdgeIndex] * ( 1 - r ) + myLast[EdgeIndex] * r; + uvPt.param = ( r > 0.5 ? myLast[EdgeIndex] : myFirst[EdgeIndex] ); } if ( !myC2d[ EdgeIndex ].IsNull() ) { gp_Pnt2d p = myC2d[ EdgeIndex ]->Value( uvPt.param );