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);
178 LocationArrayVec
const & locationArrays,
187 using namespace OPENSUBDIV_VERSION;
191 #endif // OPENSUBDIV3_FAR_STENCILTABLE_FACTORY_H
unsigned int factorizeIntermediateLevels
unsigned int maxLevel
generate stencils up to 'maxLevel'
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.
int numLocations
number of (u,v) coordinates in the array
unsigned int generateControlVerts
generate stencils for control-vertices
unsigned int generateOffsets
populate optional "_offsets" field
static StencilTable const * Create(TopologyRefiner const &refiner, Options options=Options())
Instantiates StencilTable from TopologyRefiner that have been refined uniformly or adaptively...
float const * s
array of u coordinates
A specialized factory for StencilTable.
unsigned int interpolationMode
interpolation mode
float const * t
array of v coordinates
unsigned int generateIntermediateLevels
vertices at all levels or highest only
Table of subdivision stencils.
static LimitStencilTable const * Create(TopologyRefiner const &refiner, LocationArrayVec const &locationArrays, StencilTable const *cvStencils=0, PatchTable const *patchTable=0)
Instantiates LimitStencilTable from a TopologyRefiner that has been refined either uniformly or adapt...
A specialized factory for LimitStencilTable.
Container for arrays of parametric patches.
int ptexIdx
ptex face index
Stores topology data for a specified set of refinement options.
std::vector< LocationArray > LocationArrayVec
Vertex stencil descriptor.
Descriptor for limit surface locations.
Table of limit subdivision stencils.