From: eap Date: Tue, 5 Apr 2005 10:05:00 +0000 (+0000) Subject: PAL8539. Fix case NB_SEGMENTS for scale != 1.0 and first edge parameter != 0.0 X-Git-Tag: V2_2_3~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2f9920a0182fa7257cfb0f858f7211a8f843a714;p=modules%2Fsmesh.git PAL8539. Fix case NB_SEGMENTS for scale != 1.0 and first edge parameter != 0.0 --- diff --git a/src/StdMeshers/StdMeshers_Regular_1D.cxx b/src/StdMeshers/StdMeshers_Regular_1D.cxx index 42879d159..017af4544 100644 --- a/src/StdMeshers/StdMeshers_Regular_1D.cxx +++ b/src/StdMeshers/StdMeshers_Regular_1D.cxx @@ -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;