mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-13 18:20:34 +05:00
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:
parent
d826413297
commit
b3a051c811
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user