LimitStencilTable Class Reference

Table of limit subdivision stencils. More...

#include <stencilTable.h>

Inheritance diagram for LimitStencilTable:
StencilTable

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
 

Detailed Description

Table of limit subdivision stencils.

Definition at line 285 of file stencilTable.h.

Member Function Documentation

void Clear ( )

Clears the stencils from the table.

std::vector<float> const& GetDuWeights ( ) const
inline

Returns the 'u' derivative stencil interpolation weights.

Definition at line 299 of file stencilTable.h.

std::vector<float> const& GetDvWeights ( ) const
inline

Returns the 'v' derivative stencil interpolation weights.

Definition at line 304 of file stencilTable.h.

void UpdateDerivs ( T const *  controlValues,
T *  uderivs,
T *  vderivs,
int  start = -1,
int  end = -1 
) const
inline

Updates derivative values based on the control values.

Note
The destination buffers ('uderivs' & 'vderivs') are assumed to have allocated at least GetNumStencils() elements.
Parameters
controlValuesBuffer with primvar data for the control vertices
uderivsDestination buffer for the interpolated 'u' derivative primvar data
vderivsDestination buffer for the interpolated 'v' derivative primvar data
start(skip to )index of first value to update
endIndex of last value to update

Definition at line 326 of file stencilTable.h.

Friends And Related Function Documentation

friend class LimitStencilTableFactory
friend

Definition at line 337 of file stencilTable.h.


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