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;
124 bool factorize =
true);
129 static void generateControlVertStencils(
int numControlVerts,
Stencil & dst);
200 using namespace OPENSUBDIV_VERSION;
204 #endif // OPENSUBDIV3_FAR_STENCILTABLE_FACTORY_H A specialized factory for StencilTable.
Container for arrays of parametric patches.
Table of subdivision stencils.
unsigned int generate1stDerivatives
Generate weights for 1st derivatives.
float const * t
array of v coordinates
unsigned int generateControlVerts
generate stencils for control-vertices
float const * s
array of u coordinates
A specialized factory for LimitStencilTable.
Table of limit subdivision stencils.
Vertex stencil descriptor.
static StencilTable const * Create(TopologyRefiner const &refiner, Options options=Options())
Instantiates StencilTable from TopologyRefiner that have been refined uniformly or adaptively...
Stores topology data for a specified set of refinement options.
std::vector< LocationArray > LocationArrayVec
int ptexIdx
ptex face index
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...
unsigned int generate2ndDerivatives
Generate weights for 2nd derivatives.
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.
unsigned int generateOffsets
populate optional "_offsets" field
unsigned int interpolationMode
interpolation mode
unsigned int maxLevel
generate stencils up to 'maxLevel'
int numLocations
number of (u,v) coordinates in the array
Descriptor for limit surface locations.
unsigned int generateIntermediateLevels
vertices at all levels or highest only
unsigned int factorizeIntermediateLevels