EgtGeomKernel 1.4l3 : Modifiche a ApproxWithLines anche per CurveComposite.
Aggiunta classe PolyLine.
This commit is contained in:
+3
-4
@@ -204,16 +204,15 @@ CurveLine::GetLength( double& dLen) const
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
CurveLine::ApproxWithLines( double dLinTol, double dAngTolDeg, UPNTVECTOR& vUPoints) const
|
||||
CurveLine::ApproxWithLines( double dLinTol, double dAngTolDeg, PolyLine& PL) const
|
||||
{
|
||||
// la curva deve essere validata
|
||||
if ( m_nStatus != OK)
|
||||
return false ;
|
||||
|
||||
// inserisco gli estremi
|
||||
vUPoints.reserve( 2) ;
|
||||
vUPoints.push_back( UPOINT( 0, m_PtStart)) ;
|
||||
vUPoints.push_back( UPOINT( 1, m_PtEnd)) ;
|
||||
PL.AddUPoint( 0, m_PtStart) ;
|
||||
PL.AddUPoint( 1, m_PtEnd) ;
|
||||
|
||||
return true ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user