![]() |
3DCoat
3D-COAT 4.9.xx
3DCoat is the one application that has all the tools you need to take your 3D idea from a block of digital clay all the way to a production ready, fully textured organic or hard surface model.
|
Describes the type of a patch. More...
#include <patchDescriptor.h>
Public Types | |
| enum | Type { NON_PATCH = 0, POINTS, LINES, QUADS, TRIANGLES, LOOP, REGULAR } |
Public Member Functions | |
| PatchDescriptor () | |
| Default constructor. More... | |
| PatchDescriptor (int type) | |
| Constructor. More... | |
| PatchDescriptor (PatchDescriptor const &d) | |
| Copy Constructor. More... | |
| Type | GetType () const |
| Returns the type of the patch. More... | |
| bool | IsAdaptive () const |
| Returns true if the type is an adaptive patch. More... | |
| short | GetNumControlVertices () const |
| Returns the number of control vertices expected for a patch of the type described. More... | |
| short | GetNumFVarControlVertices () const |
| Deprecated. More... | |
| bool | operator< (PatchDescriptor const other) const |
| Allows ordering of patches by type. More... | |
| bool | operator== (PatchDescriptor const other) const |
| True if the descriptors are identical. More... | |
Static Public Member Functions | |
| static bool | IsAdaptive (Type type) |
| Returns true if the type is an adaptive (non-linear) patch. More... | |
| static short | GetNumControlVertices (Type t) |
| Returns the number of control vertices expected for a patch of the type described. More... | |
| static short | GetNumFVarControlVertices (Type t) |
| Deprecated. More... | |
| static short | GetRegularPatchSize () |
| Number of control vertices of Regular Patches in table. More... | |
| static short | GetGregoryPatchSize () |
| Number of control vertices of Gregory (and Gregory Boundary) Patches in table. More... | |
| static short | GetGregoryBasisPatchSize () |
| Number of control vertices of Gregory patch basis (20) More... | |
| static Vtr::ConstArray < PatchDescriptor > | GetAdaptivePatchDescriptors (Sdc::SchemeType type) |
| Returns a vector of all the legal patch descriptors for the given adaptive subdivision scheme. More... | |
Describes the type of a patch.
Uniquely identifies all the different types of patches
|
inline |
Default constructor.
|
inline |
Constructor.
|
inline |
Copy Constructor.
|
static |
Returns a vector of all the legal patch descriptors for the given adaptive subdivision scheme.
|
inlinestatic |
Number of control vertices of Gregory patch basis (20)
|
inlinestatic |
Number of control vertices of Gregory (and Gregory Boundary) Patches in table.
|
inlinestatic |
Returns the number of control vertices expected for a patch of the type described.
Referenced by OpenSubdiv::v3_4_3::Far::PatchTable::GetPatchArrayVaryingVertices(), OpenSubdiv::v3_4_3::Far::PatchTable::GetPatchVaryingVertices(), and OpenSubdiv::v3_4_3::Far::PatchMap::PatchMap().
|
inline |
Returns the number of control vertices expected for a patch of the type described.
|
inlinestatic |
Deprecated.
|
inline |
Deprecated.
|
inlinestatic |
Number of control vertices of Regular Patches in table.
|
inline |
Returns the type of the patch.
Referenced by OpenSubdiv::v3_4_3::Far::PatchTable::EvaluateBasis(), OpenSubdiv::v3_4_3::Far::PatchTable::EvaluateBasisFaceVarying(), and OpenSubdiv::v3_4_3::Far::PatchTable::EvaluateBasisVarying().
|
inlinestatic |
Returns true if the type is an adaptive (non-linear) patch.
|
inline |
Returns true if the type is an adaptive patch.
|
inline |
Allows ordering of patches by type.
|
inline |
True if the descriptors are identical.