25 #ifndef OPENSUBDIV3_FAR_PATCH_DESCRIPTOR_H
26 #define OPENSUBDIV3_FAR_PATCH_DESCRIPTOR_H
28 #include "../version.h"
30 #include "../far/types.h"
31 #include "../sdc/types.h"
35 namespace OpenSubdiv {
36 namespace OPENSUBDIV_VERSION {
152 case QUADS :
return 4;
157 case LINES :
return 2;
172 return (_type < other._type);
178 return _type == other._type;
186 using namespace OPENSUBDIV_VERSION;
Vtr::ConstArray< PatchDescriptor > ConstPatchDescriptorArray
static bool IsAdaptive(Type type)
Returns true if the type is an adaptive patch.
PatchDescriptor(int type)
Constructor.
static short GetGregoryPatchSize()
Number of control vertices of Gregory (and Gregory Boundary) Patches in table.
lines (useful for cage drawing)
static short GetGregoryBasisPatchSize()
Number of control vertices of Gregory patch basis (20)
short GetNumFVarControlVertices() const
Deprecated.
bool operator==(PatchDescriptor const other) const
True if the descriptors are identical.
bilinear triangles-only mesh
PatchDescriptor()
Default constructor.
static Vtr::ConstArray< PatchDescriptor > GetAdaptivePatchDescriptors(Sdc::SchemeType type)
Returns a vector of all the legal patch descriptors for the given adaptive subdivision scheme...
bool operator<(PatchDescriptor const other) const
Allows ordering of patches by type.
SchemeType
Enumerated type for all subdivision schemes supported by OpenSubdiv.
Describes the type of a patch.
feature-adaptive bicubic patches
static short GetRegularPatchSize()
Number of control vertices of Regular Patches in table.
bilinear quads-only patches
Type GetType() const
Returns the type of the patch.
short GetNumControlVertices() const
Returns the number of control vertices expected for a patch of the type described.
PatchDescriptor(PatchDescriptor const &d)
Copy Constructor.
bool IsAdaptive() const
Returns true if the type is an adaptive patch.
points (useful for cage drawing)