mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-12 17:50:34 +05:00
Fix the bug reported at the SALOME forum http://salome-platform.org/forum/forum_10/510395693
map scale distribution of parameter to edge length
This commit is contained in:
parent
7eb6cc5064
commit
6d8aa3f0c8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user