25 #ifndef OPENSUBDIV3_FAR_STENCILTABLE_FACTORY_H 26 #define OPENSUBDIV3_FAR_STENCILTABLE_FACTORY_H 28 #include "../version.h" 30 #include "../far/patchTable.h" 35 namespace OPENSUBDIV_VERSION {
39 class TopologyRefiner;
44 class LimitStencilTable;
128 bool factorize =
true);
152 bool factorize =
true);
157 static void generateControlVertStencils(
int numControlVerts,
Stencil & dst);
160 static StencilTable const * appendLocalPointStencilTable(
236 using namespace OPENSUBDIV_VERSION;
240 #endif // OPENSUBDIV3_FAR_STENCILTABLE_FACTORY_H unsigned int generate2ndDerivatives
Generate weights for 2nd derivatives.
std::vector< LocationArray > LocationArrayVec
Container for arrays of parametric patches.
float const * s
array of u coordinates
unsigned int generateControlVerts
generate stencils for control-vertices
Vertex stencil descriptor.
unsigned int interpolationMode
interpolation mode
static StencilTable const * Create(TopologyRefiner const &refiner, Options options=Options())
Instantiates StencilTable from TopologyRefiner that have been refined uniformly or adaptively...
static StencilTable const * AppendLocalPointStencilTableFaceVarying(TopologyRefiner const &refiner, StencilTable const *baseStencilTable, StencilTable const *localPointStencilTable, int channel=0, bool factorize=true)
Utility function for stencil splicing for local point face-varying stencils.
int numLocations
number of (u,v) coordinates in the array
Descriptor for limit surface locations.
unsigned int maxLevel
generate stencils up to 'maxLevel'
Stores topology data for a specified set of refinement options.
unsigned int generateIntermediateLevels
vertices at all levels or highest only
face-varying primvar stencils
A specialized factory for StencilTable.
unsigned int factorizeIntermediateLevels
Table of subdivision stencils.
static StencilTable const * AppendLocalPointStencilTable(TopologyRefiner const &refiner, StencilTable const *baseStencilTable, StencilTable const *localPointStencilTable, bool factorize=true)
Utility function for stencil splicing for local point stencils.
float const * t
array of v coordinates
A specialized factory for LimitStencilTable.
Table of limit subdivision stencils.
static LimitStencilTable const * Create(TopologyRefiner const &refiner, LocationArrayVec const &locationArrays, StencilTable const *cvStencils=0, PatchTable const *patchTable=0, Options options=Options())
Instantiates LimitStencilTable from a TopologyRefiner that has been refined either uniformly or adapt...
int ptexIdx
ptex face index
unsigned int generateOffsets
populate optional "_offsets" field
unsigned int generate1stDerivatives
Generate weights for 1st derivatives.