Table of subdivision stencils. More...
#include <stencilTables.h>
Public Member Functions | |
int | GetNumStencils () const |
Returns the number of stencils in the table. More... | |
int | GetNumControlVertices () const |
Stencil | GetStencil (int i) const |
Returns a Stencil at index i in the tables. More... | |
std::vector< unsigned char > const & | GetSizes () const |
Returns the number of control vertices of each stencil in the table. More... | |
std::vector< int > const & | GetOffsets () const |
Returns the offset to a given stencil (factory may leave empty) More... | |
std::vector< int > const & | GetControlIndices () const |
Returns the indices of the control vertices. More... | |
std::vector< float > const & | GetWeights () const |
Returns the stencil interpolation weights. More... | |
template<class T > | |
void | UpdateValues (T const *controlValues, T *values, int start=-1, int end=-1) const |
Updates point values based on the control values. More... | |
Friends | |
class | StencilTablesFactory |
Table of subdivision stencils.
Stencils are the most direct methods of evaluation of locations on the limit of a surface. Every point of a limit surface can be computed by linearly blending a collection of coarse control vertices.
A stencil assigns a series of control vertex indices with a blending weight that corresponds to a unique parametric location of the limit surface. When the control vertices move in space, the limit location can be very efficiently recomputed simply by applying the blending weights to the series of coarse control vertices.
Definition at line 114 of file stencilTables.h.
|
inline |
Returns the indices of the control vertices.
Definition at line 141 of file stencilTables.h.
|
inline |
Definition at line 123 of file stencilTables.h.
|
inline |
Returns the number of stencils in the table.
Definition at line 119 of file stencilTables.h.
|
inline |
Returns the offset to a given stencil (factory may leave empty)
Definition at line 136 of file stencilTables.h.
|
inline |
Returns the number of control vertices of each stencil in the table.
Definition at line 131 of file stencilTables.h.
|
inline |
Returns a Stencil at index i in the tables.
Definition at line 325 of file stencilTables.h.
|
inline |
Returns the stencil interpolation weights.
Definition at line 146 of file stencilTables.h.
|
inline |
Updates point values based on the control values.
GetNumStencils()
elements.controlValues | Buffer with primvar data for the control vertices |
values | Destination buffer for the interpolated primvar data |
start | (skip to )index of first value to update |
end | Index of last value to update |
Definition at line 165 of file stencilTables.h.
|
friend |
Definition at line 178 of file stencilTables.h.