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