PAL7704. fix nb of internal points when there is a scale factor given for NB_SEGMENTS ( fix by Erwan ADAM )

This commit is contained in:
eap 2005-01-13 14:48:51 +00:00
parent d826413297
commit b3a051c811

View 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));