25 #ifndef FAR_STENCILTABLE_FACTORY_H
26 #define FAR_STENCILTABLE_FACTORY_H
28 #include "../version.h"
30 #include "../far/kernelBatch.h"
32 namespace OpenSubdiv {
33 namespace OPENSUBDIV_VERSION {
39 class TopologyRefiner;
95 template <
class T>
static void copyStencil(T
const & src,
Stencil & dst);
98 template <
class T>
static void copyStencils(std::vector<T> & src,
99 Stencil & dst,
bool sortBySize);
101 std::vector<int> _remap;
108 using namespace OPENSUBDIV_VERSION;
112 #endif // FAR_STENCILTABLE_FACTORY_H
A specialized factory for StencilTables.
Vertex stencil descriptor.
int generateOffsets
populate optional "_offsets" field
A GP Compute Kernel descriptor.
int generateAllLevels
vertices at all levels or highest only
Table of subdivision stencils.
int sortBySize
sort stencils by size (within a level)
int interpolationMode
interpolation mode
static StencilTables const * Create(TopologyRefiner const &refiner, Options options=Options())
Instantiates StencilTables from TopologyRefiner that have been refined uniformly or adaptively...
Stores topology data for a specified set of refinement options.