#include <patchParam.h>
|
void | Set (short u, short v, unsigned char rots, unsigned char depth, bool nonquad) |
| Sets the values of the bit fields. More...
|
|
unsigned short | GetU () const |
| Returns the log2 value of the u parameter at the top left corner of the patch. More...
|
|
unsigned short | GetV () const |
| Returns the log2 value of the v parameter at the top left corner of the patch. More...
|
|
unsigned char | GetRotation () const |
| Returns the rotation of the patch (the number of CCW parameter winding) More...
|
|
bool | NonQuadRoot () const |
| True if the parent coarse face is a non-quad. More...
|
|
float | GetParamFraction () const |
| Returns the fratcion of normalized parametric space covered by the sub-patch. More...
|
|
unsigned char | GetDepth () const |
| Returns the level of subdivision of the patch. More...
|
|
void | Normalize (float &u, float &v) const |
|
void | Rotate (float &u, float &v) const |
| Rotate (u,v) pair to compensate for transition pattern and boundary orientations. More...
|
|
void | Clear () |
| Resets the values to 0. More...
|
|
Definition at line 62 of file patchParam.h.
unsigned char GetDepth |
( |
| ) |
const |
|
inline |
Returns the level of subdivision of the patch.
Definition at line 101 of file patchParam.h.
float GetParamFraction |
( |
| ) |
const |
|
inline |
Returns the fratcion of normalized parametric space covered by the sub-patch.
Definition at line 149 of file patchParam.h.
unsigned char GetRotation |
( |
| ) |
const |
|
inline |
Returns the rotation of the patch (the number of CCW parameter winding)
Definition at line 91 of file patchParam.h.
unsigned short GetU |
( |
| ) |
const |
|
inline |
Returns the log2 value of the u parameter at the top left corner of the patch.
Definition at line 84 of file patchParam.h.
unsigned short GetV |
( |
| ) |
const |
|
inline |
Returns the log2 value of the v parameter at the top left corner of the patch.
Definition at line 88 of file patchParam.h.
bool NonQuadRoot |
( |
| ) |
const |
|
inline |
True if the parent coarse face is a non-quad.
Definition at line 94 of file patchParam.h.
void Normalize |
( |
float & |
u, |
|
|
float & |
v |
|
) |
| const |
|
inline |
The (u,v) pair is normalized to this sub-parametric space.
- Parameters
-
u | u parameter |
v | v parameter |
Definition at line 158 of file patchParam.h.
void Rotate |
( |
float & |
u, |
|
|
float & |
v |
|
) |
| const |
|
inline |
Rotate (u,v) pair to compensate for transition pattern and boundary orientations.
- Parameters
-
u | u parameter |
v | v parameter |
Definition at line 172 of file patchParam.h.
void Set |
( |
short |
u, |
|
|
short |
v, |
|
|
unsigned char |
rots, |
|
|
unsigned char |
depth, |
|
|
bool |
nonquad |
|
) |
| |
|
inline |
Sets the values of the bit fields.
- Parameters
-
u | value of the u parameter for the first corner of the face |
v | value of the v parameter for the first corner of the face |
rots | rotations required to reproduce CCW face-winding |
depth | subdivision level of the patch |
nonquad | true if the root face is not a quad |
Definition at line 74 of file patchParam.h.
The documentation for this struct was generated from the following file: