From: eap Date: Thu, 13 Jan 2005 14:48:51 +0000 (+0000) Subject: PAL7704. fix nb of internal points when there is a scale factor given for NB_SEGMENTS... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b3a051c811f9080c21ca7c969b2d7fa81595f0ab;p=modules%2Fsmesh.git PAL7704. fix nb of internal points when there is a scale factor given for NB_SEGMENTS ( fix by Erwan ADAM ) --- diff --git a/src/StdMeshers/StdMeshers_Regular_1D.cxx b/src/StdMeshers/StdMeshers_Regular_1D.cxx index d7d2e844e..86831c6b5 100644 --- a/src/StdMeshers/StdMeshers_Regular_1D.cxx +++ b/src/StdMeshers/StdMeshers_Regular_1D.cxx @@ -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));