]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL8539. Fix case NB_SEGMENTS for scale != 1.0 and first edge parameter != 0.0
authoreap <eap@opencascade.com>
Tue, 5 Apr 2005 10:00:04 +0000 (10:00 +0000)
committereap <eap@opencascade.com>
Tue, 5 Apr 2005 10:00:04 +0000 (10:00 +0000)
src/StdMeshers/StdMeshers_Regular_1D.cxx

index 42879d159700190445edaff28809efb8d6ea3a90..017af4544b42d5b05d5f3e79ecf9c7b4e67bcd66 100644 (file)
@@ -265,7 +265,7 @@ bool StdMeshers_Regular_1D::computeInternalParameters(const TopoDS_Edge& theEdge
         int i, NbPoints = 1 + (int) _value[ NB_SEGMENTS_IND ];
         for ( i = 2; i < NbPoints; i++ )
         {
-          double param = factor * (1 - pow(alpha, i - 1));
+          double param = f + factor * (1 - pow(alpha, i - 1));
           theParams.push_back( param );
         }
         return true;