From: skl Date: Tue, 16 Feb 2010 09:19:59 +0000 (+0000) Subject: Changes for bug 0020681. X-Git-Tag: V5_1_4a1~84 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=68b6c38588f15039e0c8e058e0ca31a0dd09c8c5;p=modules%2Fsmesh.git Changes for bug 0020681. --- diff --git a/src/StdMeshers/StdMeshers_Regular_1D.cxx b/src/StdMeshers/StdMeshers_Regular_1D.cxx index 477b809f9..6dbc67bac 100644 --- a/src/StdMeshers/StdMeshers_Regular_1D.cxx +++ b/src/StdMeshers/StdMeshers_Regular_1D.cxx @@ -804,38 +804,56 @@ bool StdMeshers_Regular_1D::computeInternalParameters(SMESH_Mesh & theMesh, } if(!IsExist) Params.InsertBefore(j,aPnts[i]); } - double pf, pl, par2, par1, psize; - if (theReverse) { - pf = l; - pl = f; - } - else { - pf = f; - pl = l; - } - psize = pl - pf; - par1 = pf; - //cout<<"aPnts.size() = "< tmpParams; + for(int i=2; i::iterator itP = tmpParams.begin(); + for(; itP != tmpParams.end(); itP++) { + theParams.push_back( *(itP) ); } + theParams.push_back( par2 ); + par1 = par2; } // add for last int nbseg = ( nbsegs.size() > Params.Length() ) ? nbsegs[Params.Length()] : nbsegs[0]; - double dp = (pl-par1)/nbseg; - int j = 1; - for(; j tmpParams; + for(int i=2; i::iterator itP = tmpParams.begin(); + for(; itP != tmpParams.end(); itP++) { + theParams.push_back( *(itP) ); } + if (theReverse) { theParams.reverse(); // NPAL18025 }