![]() |
OpenSubdiv
|
Table of limit subdivision stencils. More...
#include <stencilTable.h>
Public Member Functions | |
LimitStencilReal< REAL > | GetLimitStencil (Index i) const |
Returns a LimitStencil at index i in the table. | |
LimitStencilReal< REAL > | operator[] (Index index) const |
Returns the limit stencil at index i in the table. | |
std::vector< REAL > const & | GetDuWeights () const |
Returns the 'u' derivative stencil interpolation weights. | |
std::vector< REAL > const & | GetDvWeights () const |
Returns the 'v' derivative stencil interpolation weights. | |
std::vector< REAL > const & | GetDuuWeights () const |
Returns the 'uu' derivative stencil interpolation weights. | |
std::vector< REAL > const & | GetDuvWeights () const |
Returns the 'uv' derivative stencil interpolation weights. | |
std::vector< REAL > const & | GetDvvWeights () const |
Returns the 'vv' derivative stencil interpolation weights. | |
template<class T , class U > | |
void | UpdateDerivs (T const &srcValues, U &uderivs, U &vderivs, int start=-1, int end=-1) const |
Updates derivative values based on the control values. | |
template<class T1 , class T2 , class U > | |
void | UpdateDerivs (T1 const &srcBase, int numBase, T2 const &srcRef, U &uderivs, U &vderivs, int start=-1, int end=-1) const |
template<class T , class U > | |
void | UpdateDerivs (T const *src, U *uderivs, U *vderivs, int start=-1, int end=-1) const |
template<class T1 , class T2 , class U > | |
void | UpdateDerivs (T1 const *srcBase, int numBase, T2 const *srcRef, U *uderivs, U *vderivs, int start=-1, int end=-1) const |
template<class T , class U > | |
void | Update2ndDerivs (T const &srcValues, U &uuderivs, U &uvderivs, U &vvderivs, int start=-1, int end=-1) const |
Updates 2nd derivative values based on the control values. | |
template<class T1 , class T2 , class U > | |
void | Update2ndDerivs (T1 const &srcBase, int numBase, T2 const &srcRef, U &uuderivs, U &uvderivs, U &vvderivs, int start=-1, int end=-1) const |
template<class T , class U > | |
void | Update2ndDerivs (T const *src, T *uuderivs, U *uvderivs, U *vvderivs, int start=-1, int end=-1) const |
template<class T1 , class T2 , class U > | |
void | Update2ndDerivs (T1 const *srcBase, int numBase, T2 const *srcRef, U *uuderivs, U *uvderivs, U *vvderivs, int start=-1, int end=-1) const |
void | Clear () |
Clears the stencils from the table. | |
![]() | |
virtual | ~StencilTableReal () |
int | GetNumStencils () const |
Returns the number of stencils in the table. | |
int | GetNumControlVertices () const |
Returns the number of control vertices indexed in the table. | |
StencilReal< REAL > | GetStencil (Index i) const |
Returns a Stencil at index i in the table. | |
std::vector< int > const & | GetSizes () const |
Returns the number of control vertices of each stencil in the table. | |
std::vector< Index > const & | GetOffsets () const |
Returns the offset to a given stencil (factory may leave empty) | |
std::vector< Index > const & | GetControlIndices () const |
Returns the indices of the control vertices. | |
std::vector< REAL > const & | GetWeights () const |
Returns the stencil interpolation weights. | |
StencilReal< REAL > | operator[] (Index index) const |
Returns the stencil at index i in the table. | |
template<class T , class U > | |
void | UpdateValues (T const &srcValues, U &dstValues, Index start=-1, Index end=-1) const |
Updates point values based on the control values. | |
template<class T1 , class T2 , class U > | |
void | UpdateValues (T1 const &srcBase, int numBase, T2 const &srcRef, U &dstValues, Index start=-1, Index end=-1) const |
template<class T , class U > | |
void | UpdateValues (T const *src, U *dst, Index start=-1, Index end=-1) const |
template<class T1 , class T2 , class U > | |
void | UpdateValues (T1 const *srcBase, int numBase, T2 const *srcRef, U *dst, Index start=-1, Index end=-1) const |
void | Clear () |
Clears the stencils from the table. | |
Friends | |
class | LimitStencilTableFactoryReal< REAL > |
Additional Inherited Members | |
![]() | |
int | _numControlVertices |
std::vector< int > | _sizes |
std::vector< Index > | _offsets |
std::vector< Index > | _indices |
std::vector< REAL > | _weights |
Table of limit subdivision stencils.
Definition at line 409 of file stencilTable.h.
|
protected |
Returns the 'uu' derivative stencil interpolation weights.
Definition at line 444 of file stencilTable.h.
Returns the 'uv' derivative stencil interpolation weights.
Definition at line 449 of file stencilTable.h.
Returns the 'u' derivative stencil interpolation weights.
Definition at line 434 of file stencilTable.h.
Returns the 'vv' derivative stencil interpolation weights.
Definition at line 454 of file stencilTable.h.
Returns the 'v' derivative stencil interpolation weights.
Definition at line 439 of file stencilTable.h.
|
inline |
Returns a LimitStencil at index i in the table.
Definition at line 749 of file stencilTable.h.
Returns the limit stencil at index i in the table.
Definition at line 782 of file stencilTable.h.
|
inline |
Updates 2nd derivative values based on the control values.
GetNumStencils()
elements.srcValues | Buffer with primvar data for the control vertices |
uuderivs | Destination buffer for the interpolated 'uu' derivative primvar data |
uvderivs | Destination buffer for the interpolated 'uv' derivative primvar data |
vvderivs | Destination buffer for the interpolated 'vv' derivative primvar data |
start | Index of first destination derivative to update |
end | Index of last destination derivative to update |
Definition at line 528 of file stencilTable.h.
|
inline |
Definition at line 548 of file stencilTable.h.
|
inline |
Definition at line 538 of file stencilTable.h.
|
inline |
Definition at line 556 of file stencilTable.h.
|
inline |
Updates derivative values based on the control values.
GetNumStencils()
elements.srcValues | 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 | Index of first destination derivative to update |
end | Index of last destination derivative to update |
Definition at line 476 of file stencilTable.h.
|
inline |
Definition at line 493 of file stencilTable.h.
|
inline |
Definition at line 484 of file stencilTable.h.
|
inline |
Definition at line 500 of file stencilTable.h.
Definition at line 565 of file stencilTable.h.