void QgsCircularString::points( QgsPointSequence &pts ) const { pts.clear(); int nPts = numPoints(); for ( int i = 0; i < nPts; ++i ) { pts.push_back( pointN( i ) ); } }
void QgsCompoundCurve::points( QgsPointSequence &pts ) const { pts.clear(); if ( mCurves.empty() ) { return; } mCurves[0]->points( pts ); for ( int i = 1; i < mCurves.size(); ++i ) { QgsPointSequence pList; mCurves[i]->points( pList ); pList.removeFirst(); //first vertex already added in previous line pts.append( pList ); } }