map scale distribution of parameter to edge length
This commit is contained in:
eap 2011-09-01 11:34:43 +00:00
parent 7eb6cc5064
commit 6d8aa3f0c8

View File

@ -687,6 +687,14 @@ bool StdMeshers_Regular_1D::computeInternalParameters(SMESH_Mesh & theMesh,
theParams.push_back( param );
}
}
const double lenFactor = theLength/(l-f);
list<double>::iterator u = theParams.begin(), uEnd = theParams.end();
for ( ; u != uEnd; ++u )
{
GCPnts_AbscissaPoint Discret( theC3d, (*u) * lenFactor, f );
if ( Discret.IsDone() )
*u = Discret.Parameter();
}
return true;
}
break;