EgtGeomKernel 1.6c4 :
- aggiunti raccordi e smussi di curve - aggiunte a curve funzioni che danno parametro e distanza da inizio di punto di curva.
This commit is contained in:
@@ -444,6 +444,28 @@ CurveLine::IsPointOn( const Point3d& ptP, double dTol) const
|
||||
return ( DistPointLine( ptP, *this).GetSqDist( dSqDist) && dSqDist < dTol * dTol) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
CurveLine::GetParamAtPoint( const Point3d& ptP, double& dPar, double dTol) const
|
||||
{
|
||||
double dSqDist ;
|
||||
dTol = max( dTol, EPS_ZERO) ;
|
||||
DistPointLine DPL( ptP, *this) ;
|
||||
if ( ! DPL.GetSqDist( dSqDist) || dSqDist > dTol * dTol)
|
||||
return false ;
|
||||
return DPL.GetParamAtMinDistPoint( dPar) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
CurveLine::GetLengthAtPoint( const Point3d& ptP, double& dLen, double dTol) const
|
||||
{
|
||||
double dU ;
|
||||
if ( ! GetParamAtPoint( ptP, dU, dTol))
|
||||
return false ;
|
||||
return GetLengthAtParam( dU, dLen) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
CurveLine::ApproxWithLines( double dLinTol, double dAngTolDeg, PolyLine& PL) const
|
||||
|
||||
Reference in New Issue
Block a user