25 #ifndef OPENSUBDIV3_OSD_TYPES_H
26 #define OPENSUBDIV3_OSD_TYPES_H
28 #include "../version.h"
29 #include "../far/patchTable.h"
33 namespace OpenSubdiv {
34 namespace OPENSUBDIV_VERSION {
54 handle(handleArg),
s(sArg),
t(tArg) { }
69 int numPatches_in,
int indexBase_in,
int primitiveIdBase_in) :
72 stride(desc_in.GetNumControlVertices()),
76 int numPatches_in,
int indexBase_in,
int primitiveIdBase_in) :
79 stride(std::max(regDesc_in.GetNumControlVertices(),
80 irregDesc_in.GetNumControlVertices())),
138 using namespace OPENSUBDIV_VERSION;
143 #endif // OPENSUBDIV3_OSD_TYPES_H
Far::PatchDescriptor const & GetDescriptorRegular() const
Far::PatchTable::PatchHandle handle
patch handle
Far::PatchDescriptor regDesc
int GetPrimitiveIdBase() const
Far::PatchDescriptor desc
std::vector< PatchParam > PatchParamVector
PatchArray(Far::PatchDescriptor regDesc_in, Far::PatchDescriptor irregDesc_in, int numPatches_in, int indexBase_in, int primitiveIdBase_in)
float t
parametric location on patch
int GetPatchTypeIrregular() const
Far::PatchDescriptor const & GetDescriptorIrregular() const
PatchArray(Far::PatchDescriptor desc_in, int numPatches_in, int indexBase_in, int primitiveIdBase_in)
Type GetType() const
Returns the type of the patch.
int GetPatchTypeRegular() const
PatchCoord(Far::PatchTable::PatchHandle handleArg, float sArg, float tArg)
Constructor.
Handle that can be used as unique patch identifier within PatchTable.
Describes the type of a patch.
std::vector< PatchArray > PatchArrayVector
Far::PatchDescriptor const & GetDescriptor() const
int GetNumPatches() const
Coordinates set on a patch table.