typedef typename TImageBase::PointType TPoint;
typedef typename TImageBase::DirectionType TDirection;
typedef typename Superclass::ContinuousIndexType TContinuousIndex;
+ typedef typename TContinuousIndex::IndexType TIndex;
typedef typename TPoint::VectorType TVector;
typedef cpExtensions::Algorithms::BezierCurveFunction< TVector > TBezier;
public:
void AddVertex( const TContinuousIndex& vertex );
unsigned long GetSize( ) const;
- TContinuousIndex GetVertex( unsigned long i ) const;
+ TContinuousIndex GetContinuousVertex( unsigned long i ) const;
+ TIndex GetVertex( unsigned long i ) const;
TPoint GetPoint( unsigned long i ) const;
TPoint GetSmoothPoint( double u ) const;
typename cpExtensions::DataStructures::PolyLineParametricPath< _VDim >::
TContinuousIndex
cpExtensions::DataStructures::PolyLineParametricPath< _VDim >::
-GetVertex( unsigned long i ) const
+GetContinuousVertex( unsigned long i ) const
{
return( this->GetVertexList( )->GetElement( i ) );
}
+// -------------------------------------------------------------------------
+template< unsigned int _VDim >
+typename cpExtensions::DataStructures::PolyLineParametricPath< _VDim >::
+TIndex cpExtensions::DataStructures::PolyLineParametricPath< _VDim >::
+GetVertex( unsigned long i ) const
+{
+ TContinuousIndex cidx = this->GetContinuousVertex( i );
+ TIndex idx;
+ for( unsigned int d = 0; d < _VDim; ++d )
+ idx[ d ] = cidx[ d ];
+ return( idx );
+}
+
// -------------------------------------------------------------------------
template< unsigned int _VDim >
typename cpExtensions::DataStructures::PolyLineParametricPath< _VDim >::