]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL7704. fix nb of internal points when there is a scale factor given for NB_SEGMENTS...
authoreap <eap@opencascade.com>
Thu, 13 Jan 2005 14:48:51 +0000 (14:48 +0000)
committereap <eap@opencascade.com>
Thu, 13 Jan 2005 14:48:51 +0000 (14:48 +0000)
src/StdMeshers/StdMeshers_Regular_1D.cxx

index d7d2e844e7f99fa4079d1fa6628e88df670fb2c8..86831c6b503740b975c5dac4521c0caf92c7f1c9 100644 (file)
@@ -218,7 +218,7 @@ bool StdMeshers_Regular_1D::computeInternalParameters(const TopoDS_Edge& theEdge
         double factor =
           length / (1 - pow( alpha,_value[ NB_SEGMENTS_IND ]));
 
-        int i, NbPoints = (int) _value[ NB_SEGMENTS_IND ];
+        int i, NbPoints = 1 + (int) _value[ NB_SEGMENTS_IND ];
         for ( i = 2; i < NbPoints; i++ )
         {
           double param = factor * (1 - pow(alpha, i - 1));