Salome HOME
PAL13460 (PAL EDF 301 force the mesh to go through a point)
authoreap <eap@opencascade.com>
Wed, 28 Feb 2007 15:05:07 +0000 (15:05 +0000)
committereap <eap@opencascade.com>
Wed, 28 Feb 2007 15:05:07 +0000 (15:05 +0000)
   precise node param on edge

src/StdMeshers/StdMeshers_FaceSide.cxx

index 081d2a79f14391059b06f933b1514ad037b43644..0ceabc89b63220ef27f0a64bd65904cd0c91d0f7 100644 (file)
@@ -263,7 +263,8 @@ const vector<UVPtStruct>& 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 );