![]() |
OpenSubdiv
|
Describes the type of a patch. More...
#include <patchDescriptor.h>
Public Types | |
enum | Type { NON_PATCH = 0 , POINTS , LINES , QUADS , TRIANGLES , LOOP , REGULAR , GREGORY , GREGORY_BOUNDARY , GREGORY_BASIS , GREGORY_TRIANGLE } |
Public Member Functions | |
PatchDescriptor () | |
Default constructor. | |
PatchDescriptor (int type) | |
Constructor. | |
PatchDescriptor (PatchDescriptor const &d) | |
Copy Constructor. | |
Type | GetType () const |
Returns the type of the patch. | |
bool | IsAdaptive () const |
Returns true if the type is an adaptive patch. | |
short | GetNumControlVertices () const |
Returns the number of control vertices expected for a patch of the type described. | |
short | GetNumFVarControlVertices () const |
Deprecated. | |
bool | operator< (PatchDescriptor const other) const |
Allows ordering of patches by type. | |
bool | operator== (PatchDescriptor const other) const |
True if the descriptors are identical. | |
void | print () const |
Static Public Member Functions | |
static bool | IsAdaptive (Type type) |
Returns true if the type is an adaptive (non-linear) patch. | |
static short | GetNumControlVertices (Type t) |
Returns the number of control vertices expected for a patch of the type described. | |
static short | GetNumFVarControlVertices (Type t) |
Deprecated. | |
static short | GetRegularPatchSize () |
Number of control vertices of Regular Patches in table. | |
static short | GetGregoryPatchSize () |
Number of control vertices of Gregory (and Gregory Boundary) Patches in table. | |
static short | GetGregoryBasisPatchSize () |
Number of control vertices of Gregory patch basis (20) | |
static Vtr::ConstArray< PatchDescriptor > | GetAdaptivePatchDescriptors (Sdc::SchemeType type) |
Returns a vector of all the legal patch descriptors for the given adaptive subdivision scheme. | |
Describes the type of a patch.
Uniquely identifies all the different types of patches
Definition at line 44 of file patchDescriptor.h.
Definition at line 48 of file patchDescriptor.h.
|
inline |
Default constructor.
Definition at line 69 of file patchDescriptor.h.
|
inline |
Constructor.
Definition at line 73 of file patchDescriptor.h.
|
inline |
Copy Constructor.
Definition at line 77 of file patchDescriptor.h.
|
static |
Returns a vector of all the legal patch descriptors for the given adaptive subdivision scheme.
Number of control vertices of Gregory patch basis (20)
Definition at line 120 of file patchDescriptor.h.
Number of control vertices of Gregory (and Gregory Boundary) Patches in table.
Definition at line 117 of file patchDescriptor.h.
|
inline |
Returns the number of control vertices expected for a patch of the type described.
Definition at line 104 of file patchDescriptor.h.
Returns the number of control vertices expected for a patch of the type described.
Definition at line 144 of file patchDescriptor.h.
|
inline |
Deprecated.
Definition at line 109 of file patchDescriptor.h.
Deprecated.
Definition at line 162 of file patchDescriptor.h.
Number of control vertices of Regular Patches in table.
Definition at line 114 of file patchDescriptor.h.
|
inline |
Returns the type of the patch.
Definition at line 81 of file patchDescriptor.h.
|
inline |
Returns true if the type is an adaptive patch.
Definition at line 91 of file patchDescriptor.h.
Returns true if the type is an adaptive (non-linear) patch.
Definition at line 86 of file patchDescriptor.h.
|
inline |
Allows ordering of patches by type.
Definition at line 167 of file patchDescriptor.h.
|
inline |
True if the descriptors are identical.
Definition at line 174 of file patchDescriptor.h.
void print | ( | ) | const |