25 #ifndef OPENSUBDIV3_OSD_TYPES_H 26 #define OPENSUBDIV3_OSD_TYPES_H 28 #include "../version.h" 29 #include "../far/patchTable.h" 32 namespace OPENSUBDIV_VERSION {
52 handle(handleArg),
s(sArg),
t(tArg) { }
67 int indexBase_in,
int primitiveIdBase_in) :
68 desc(desc_in), numPatches(numPatches_in), indexBase(indexBase_in),
69 primitiveIdBase(primitiveIdBase_in) {}
76 return desc.GetType();
85 return primitiveIdBase;
104 using namespace OPENSUBDIV_VERSION;
109 #endif // OPENSUBDIV3_OSD_TYPES_H PatchCoord(Far::PatchTable::PatchHandle handleArg, float sArg, float tArg)
Constructor.
int GetPrimitiveIdBase() const
std::vector< PatchParam > PatchParamVector
Far::PatchDescriptor const & GetDescriptor() const
std::vector< PatchArray > PatchArrayVector
Far::PatchTable::PatchHandle handle
patch handle
Handle that can be used as unique patch identifier within PatchTable.
int GetNumPatches() const
float t
parametric location on patch
Coordinates set on a patch table.
Far::PatchDescriptor desc
PatchArray(Far::PatchDescriptor desc_in, int numPatches_in, int indexBase_in, int primitiveIdBase_in)
Describes the type of a patch.