HDK
|
Polynomial forward differencer. More...
#include <GA_ForwardDifference.h>
Public Member Functions | |
GA_ForwardDifference (const GA_ROGenericHandleVertex< T > &gah) | |
Perform forward differencing. More... | |
GA_ForwardDifference (const GA_ROGenericHandleVertex< T > &gah, int uord, fpreal uinc, int vord=1, fpreal vinc=1) | |
~GA_ForwardDifference () | |
void | initialize (const GA_ROGenericHandleVertex< T > &gah, int uord, fpreal uinc, int vord=1, fpreal vinc=1) |
void | walk (const GA_ROGenericHandleVertex< T > &gah, int ucount, int uoff, T *results) |
void | walk (const GA_ROGenericHandleVertex< T > &gah, int ucount, int vcount, int uoff, int voff, int ncols, T *results) |
int | getUOrder () const |
fpreal | getUStep () const |
Return the initialized U integration step size. More... | |
int | getVOrder () const |
Return the initialized V order. More... | |
fpreal | getVStep () const |
Return the initialized V integration step size. More... | |
T & | getDerivative (int u, int v=0) |
Return the offset for the derivative. More... | |
Polynomial forward differencer.
This class performs forward differencing of polynomial functions by forward differencing. To use this class, you need to specify
Definition at line 34 of file GA_ForwardDifference.h.
GA_ForwardDifference< T >::GA_ForwardDifference | ( | const GA_ROGenericHandleVertex< T > & | gah | ) |
Perform forward differencing.
GA_ForwardDifference< T >::GA_ForwardDifference | ( | const GA_ROGenericHandleVertex< T > & | gah, |
int | uord, | ||
fpreal | uinc, | ||
int | vord = 1 , |
||
fpreal | vinc = 1 |
||
) |
GA_ForwardDifference< T >::~GA_ForwardDifference | ( | ) |
|
inline |
Return the offset for the derivative.
Definition at line 63 of file GA_ForwardDifference.h.
|
inline |
Return the initialized U order
Definition at line 53 of file GA_ForwardDifference.h.
|
inline |
Return the initialized U integration step size.
Definition at line 55 of file GA_ForwardDifference.h.
|
inline |
Return the initialized V order.
Definition at line 58 of file GA_ForwardDifference.h.
|
inline |
Return the initialized V integration step size.
Definition at line 60 of file GA_ForwardDifference.h.
void GA_ForwardDifference< T >::initialize | ( | const GA_ROGenericHandleVertex< T > & | gah, |
int | uord, | ||
fpreal | uinc, | ||
int | vord = 1 , |
||
fpreal | vinc = 1 |
||
) |
Initialize the forward differencer with
uord | Order of the spline in U |
uinc | Stepping increment for integration in U |
vord | Order of the spline in V. For 1D curves, this is ignored. |
vinc | Stepping increment for integration in V |
void GA_ForwardDifference< T >::walk | ( | const GA_ROGenericHandleVertex< T > & | gah, |
int | ucount, | ||
int | uoff, | ||
T * | results | ||
) |
1D forward difference a hull into a curve
gah | is the set of attributes to evaluate. |
ucount | is the number of vertices to fill |
uoff | Offset into the results. That is, the results will be stored in results[uoff]-results[uoff+ucount-1]
|
deriv | Nth Derivatives. When the hull and the results exist in different details, the derivatives are represented by the RHS in the gah (source mapping). |
results | List of vertex offsets where the result should be stored. When the hull and results are in different details, the results are the LHS of the gah (destination mapping). |
void GA_ForwardDifference< T >::walk | ( | const GA_ROGenericHandleVertex< T > & | gah, |
int | ucount, | ||
int | vcount, | ||
int | uoff, | ||
int | voff, | ||
int | ncols, | ||
T * | results | ||
) |
2D forward difference a hull into a mesh
gah | is the set of attributes to evaluate. |
ucount | is the number of vertices to fill in U (columns) |
vcount | is the number of vertices to fill in V (rows) |
uoff | Offset into the results (stride). |
voff | Offset into the results (stride). |
ncols | Number of columns in the full matrix of result vertices. This is used to stride into the offsets/rows. |
deriv | Nth Derivatives. When the hull and the results exist in different details, the derivatives are represented by the RHS in the gah (source mapping). |
results | List of vertex offsets where the result should be stored. When the hull and results are in different details, the results are the LHS of the gah (destination mapping). |