]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix the bug reported at the SALOME forum http://salome-platform.org/forum/forum_10...
authoreap <eap@opencascade.com>
Thu, 1 Sep 2011 11:34:43 +0000 (11:34 +0000)
committereap <eap@opencascade.com>
Thu, 1 Sep 2011 11:34:43 +0000 (11:34 +0000)
   map scale distribution of parameter to edge length

src/StdMeshers/StdMeshers_Regular_1D.cxx

index 24aefeb864ef20dfce38c3bcae222ffd3c332685..bedf3692c919b69afaf01d0475e0fcf914d2cfaa 100644 (file)
@@ -687,6 +687,14 @@ bool StdMeshers_Regular_1D::computeInternalParameters(SMESH_Mesh &     theMesh,
               theParams.push_back( param );
             }
           }
+          const double lenFactor = theLength/(l-f);
+          list<double>::iterator u = theParams.begin(), uEnd = theParams.end();
+          for ( ; u != uEnd; ++u )
+          {
+            GCPnts_AbscissaPoint Discret( theC3d, (*u) * lenFactor, f );
+            if ( Discret.IsDone() )
+              *u = Discret.Parameter();
+          }
           return true;
         }
         break;