iaux::iaBSpline< T > Class Template Reference

Non uniform B-Spline. More...

#include <iaBSpline.h>

Public Member Functions

void addSupportPoint (const iaVector3< T > &point)
 
void clear ()
 
void setRank (const uint32 rank)
 
const uint32 getRank () const
 
iaVector3< T > getPointOnSpline (T t)
 
void getPoints (std::vector< iaVector3< T > > &points, int32 pointCount)
 
const std::vector< iaVector3< T > > & getSupportPoints () const
 
void setSupportPoint (const iaVector3< T > &point, uint32 index)
 
const iaVector3< T > & getSupportPoint (uint32 index) const
 
 iaBSpline ()=default
 
 ~iaBSpline ()=default
 

Detailed Description

template<class T>
class iaux::iaBSpline< T >

Non uniform B-Spline.

Constructor & Destructor Documentation

◆ iaBSpline()

template<class T >
iaux::iaBSpline< T >::iaBSpline ( )
default

does nothing

◆ ~iaBSpline()

template<class T >
iaux::iaBSpline< T >::~iaBSpline ( )
default

does nothing

Member Function Documentation

◆ addSupportPoint()

template<class T >
void iaBSpline::addSupportPoint ( const iaVector3< T > &  point)

add support point to spline

Parameters
pointnew point to add

◆ clear()

template<class T >
void iaBSpline::clear ( )

clears list of support points

◆ getPointOnSpline()

template<class T >
iaVector3< T > iaBSpline::getPointOnSpline ( t)
Returns
vertex position on specified position on spline
Parameters
tposition on spline 0.0-1.0

◆ getPoints()

template<class T >
void iaBSpline::getPoints ( std::vector< iaVector3< T > > &  points,
int32  pointCount 
)

retruns points on the spline

Parameters
[out]pointsthe resulting points
pointCountthe amount of points to generate on the spline (min 2)

◆ getRank()

template<class T >
const uint32 iaBSpline::getRank ( ) const
Returns
rank of this spline

◆ getSupportPoint()

template<class T >
const iaVector3< T > & iaBSpline::getSupportPoint ( uint32  index) const
Returns
specified support point No range check!
Parameters
indexindex of support point to return

◆ getSupportPoints()

template<class T >
const std::vector< iaVector3< T > > & iaBSpline::getSupportPoints ( ) const
Returns
list of support points

◆ setRank()

template<class T >
void iaBSpline::setRank ( const uint32  rank)

configure the rank of the spline

Parameters
rankthe rank of the spline (default = 3)

◆ setSupportPoint()

template<class T >
void iaBSpline::setSupportPoint ( const iaVector3< T > &  point,
uint32  index 
)

overwrites value od specified support point. No range check!

Parameters
pointnew position of support point
indexindex of support point to change

The documentation for this class was generated from the following files: