Table of limit subdivision stencils. More...
#include <stencilTable.h>
Public Member Functions | |
std::vector< float > const & | GetDuWeights () const |
Returns the 'u' derivative stencil interpolation weights. More... | |
std::vector< float > const & | GetDvWeights () const |
Returns the 'v' derivative stencil interpolation weights. More... | |
template<class T > | |
void | UpdateDerivs (T const *controlValues, T *uderivs, T *vderivs, int start=-1, int end=-1) const |
Updates derivative values based on the control values. More... | |
void | Clear () |
Clears the stencils from the table. More... | |
Public Member Functions inherited from StencilTable | |
int | GetNumStencils () const |
Returns the number of stencils in the table. More... | |
int | GetNumControlVertices () const |
Returns the number of control vertices indexed in the table. More... | |
Stencil | GetStencil (Index i) const |
Returns a Stencil at index i in the table. More... | |
std::vector< int > const & | GetSizes () const |
Returns the number of control vertices of each stencil in the table. More... | |
std::vector< Index > const & | GetOffsets () const |
Returns the offset to a given stencil (factory may leave empty) More... | |
std::vector< Index > const & | GetControlIndices () const |
Returns the indices of the control vertices. More... | |
std::vector< float > const & | GetWeights () const |
Returns the stencil interpolation weights. More... | |
Stencil | operator[] (Index index) const |
Returns the stencil at index i in the table. More... | |
template<class T > | |
void | UpdateValues (T const *controlValues, T *values, Index start=-1, Index end=-1) const |
Updates point values based on the control values. More... | |
void | Clear () |
Clears the stencils from the table. More... | |
Friends | |
class | LimitStencilTableFactory |
Additional Inherited Members | |
Protected Member Functions inherited from StencilTable | |
template<class T > | |
void | update (T const *controlValues, T *values, std::vector< float > const &valueWeights, Index start, Index end) const |
void | generateOffsets () |
void | resize (int nstencils, int nelems) |
StencilTable () | |
StencilTable (int numControlVerts) | |
Protected Attributes inherited from StencilTable | |
int | _numControlVertices |
std::vector< int > | _sizes |
std::vector< Index > | _offsets |
std::vector< Index > | _indices |
std::vector< float > | _weights |
Table of limit subdivision stencils.
Definition at line 285 of file stencilTable.h.
void Clear | ( | ) |
Clears the stencils from the table.
|
inline |
Returns the 'u' derivative stencil interpolation weights.
Definition at line 299 of file stencilTable.h.
|
inline |
Returns the 'v' derivative stencil interpolation weights.
Definition at line 304 of file stencilTable.h.
|
inline |
Updates derivative values based on the control values.
GetNumStencils()
elements.controlValues | Buffer with primvar data for the control vertices |
uderivs | Destination buffer for the interpolated 'u' derivative primvar data |
vderivs | Destination buffer for the interpolated 'v' derivative primvar data |
start | (skip to )index of first value to update |
end | Index of last value to update |
Definition at line 326 of file stencilTable.h.
|
friend |
Definition at line 337 of file stencilTable.h.