All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StencilTablesFactory Class Reference

A specialized factory for StencilTables. More...

#include <stencilTablesFactory.h>

Classes

struct  Options
 
struct  Options
 

Public Types

enum  Mode { INTERPOLATE_VERTEX =0, INTERPOLATE_VARYING }
 

Static Public Member Functions

static StencilTables const * Create (TopologyRefiner const &refiner, Options options=Options())
 Instantiates StencilTables from TopologyRefiner that have been refined uniformly or adaptively. More...
 
static KernelBatch Create (StencilTables const &stencilTables)
 Returns a KernelBatch applying all the stencil in the tables to primvar data. More...
 

Detailed Description

A specialized factory for StencilTables.

Note: when using 'sortBySize', vertex indices from PatchTables or TopologyRefiner need to be remapped to their new location in the vertex buffer.

Definition at line 49 of file stencilTablesFactory.h.

Member Enumeration Documentation

enum Mode
Enumerator
INTERPOLATE_VERTEX 
INTERPOLATE_VARYING 

Definition at line 53 of file stencilTablesFactory.h.

Member Function Documentation

static StencilTables const* Create ( TopologyRefiner const &  refiner,
Options  options = Options() 
)
static

Instantiates StencilTables 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
refinerThe TopologyRefiner containing the refined topology
optionsOptions controlling the creation of the tables
static KernelBatch Create ( StencilTables const &  stencilTables)
static

Returns a KernelBatch applying all the stencil in the tables to primvar data.

Parameters
stencilTablesThe stencil tables to batch

The documentation for this class was generated from the following file: