A specialized factory for StencilTable.
More...
#include <stencilTableFactory.h>
|
static StencilTableReal< REAL > const * | Create (TopologyRefiner const &refiner, Options options=Options()) |
| Instantiates StencilTable from TopologyRefiner that have been refined uniformly or adaptively.
|
|
static StencilTableReal< REAL > const * | Create (int numTables, StencilTableReal< REAL > const **tables) |
| Instantiates StencilTable by concatenating an array of existing stencil tables.
|
|
static StencilTableReal< REAL > const * | AppendLocalPointStencilTable (TopologyRefiner const &refiner, StencilTableReal< REAL > const *baseStencilTable, StencilTableReal< REAL > const *localPointStencilTable, bool factorize=true) |
| Utility function for stencil splicing for local point stencils.
|
|
static StencilTableReal< REAL > const * | AppendLocalPointStencilTableVarying (TopologyRefiner const &refiner, StencilTableReal< REAL > const *baseStencilTable, StencilTableReal< REAL > const *localPointStencilTable, bool factorize=true) |
| Utility function for stencil splicing for local point varying stencils.
|
|
static StencilTableReal< REAL > const * | AppendLocalPointStencilTableFaceVarying (TopologyRefiner const &refiner, StencilTableReal< REAL > const *baseStencilTable, StencilTableReal< REAL > const *localPointStencilTable, int channel=0, bool factorize=true) |
| Utility function for stencil splicing for local point face-varying stencils.
|
|
template<typename REAL>
class OpenSubdiv::OPENSUBDIV_VERSION::Far::StencilTableFactoryReal< REAL >
A specialized factory for StencilTable.
Definition at line 51 of file stencilTableFactory.h.
◆ Mode
Enumerator |
---|
INTERPOLATE_VERTEX | vertex primvar stencils
|
INTERPOLATE_VARYING | varying primvar stencils
|
INTERPOLATE_FACE_VARYING | face-varying primvar stencils
|
Definition at line 55 of file stencilTableFactory.h.
◆ AppendLocalPointStencilTable()
Utility function for stencil splicing for local point stencils.
- Parameters
-
refiner | The TopologyRefiner containing the topology |
baseStencilTable | Input StencilTable for refined vertices |
localPointStencilTable | StencilTable for the change of basis patch points. |
factorize | If factorize is set to true, endcap stencils will be factorized with supporting vertices from baseStencil table so that the endcap points can be computed directly from control vertices. |
◆ AppendLocalPointStencilTableFaceVarying()
Utility function for stencil splicing for local point face-varying stencils.
- Parameters
-
refiner | The TopologyRefiner containing the topology |
baseStencilTable | Input StencilTable for refined vertices |
localPointStencilTable | StencilTable for the change of basis patch points. |
channel | face-varying channel |
factorize | If factorize is set to true, endcap stencils will be factorized with supporting vertices from baseStencil table so that the endcap points can be computed directly from control vertices. |
◆ AppendLocalPointStencilTableVarying()
Utility function for stencil splicing for local point varying stencils.
- Parameters
-
refiner | The TopologyRefiner containing the topology |
baseStencilTable | Input StencilTable for refined vertices |
localPointStencilTable | StencilTable for the change of basis patch points. |
factorize | If factorize is set to true, endcap stencils will be factorized with supporting vertices from baseStencil table so that the endcap points can be computed directly from control vertices. |
Definition at line 148 of file stencilTableFactory.h.
◆ Create() [1/2]
Instantiates StencilTable by concatenating an array of existing stencil tables.
- Note
- This factory checks that the stencil tables point to the same set of supporting control vertices - no re-indexing is done. GetNumControlVertices() must return the same value for all input tables.
- Parameters
-
numTables | Number of input StencilTables |
tables | Array of input StencilTables |
◆ Create() [2/2]
Instantiates StencilTable from TopologyRefiner that have been refined uniformly or adaptively.
- Note
- The factory only creates stencils for vertices that have already been refined in the TopologyRefiner. Use RefineUniform() or RefineAdaptive() before constructing the stencils.
- Parameters
-
The documentation for this class was generated from the following files: