From b3a051c811f9080c21ca7c969b2d7fa81595f0ab Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 13 Jan 2005 14:48:51 +0000 Subject: [PATCH] PAL7704. fix nb of internal points when there is a scale factor given for NB_SEGMENTS ( fix by Erwan ADAM ) --- src/StdMeshers/StdMeshers_Regular_1D.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.39.2