OpenSubdiv
|
Options configure a Tessellation to specify the nature of both its results and the structure of the coordinate and facet index arrays that its methods will populate. More...
#include <tessellation.h>
Public Member Functions | |
Options () | |
Options & | PreserveQuads (bool on) |
Select preservation of quads for quad-based subdivision (requires 4-sided facets, default is off) | |
bool | PreserveQuads () const |
Return if preservation of quads is set. | |
Options & | SetFacetSize (int numIndices) |
Assign the number of indices per facet (must be 3 or 4, default is 3) | |
int | GetFacetSize () const |
Options & | SetFacetStride (int stride) |
Assign the stride between facets (default is facet size) | |
int | GetFacetStride () const |
Return the stride between facets. | |
Options & | SetCoordStride (int stride) |
Assign the stride between (u,v) pairs (default is 2) | |
int | GetCoordStride () const |
Return the stride between (u,v) pairs. | |
Options configure a Tessellation to specify the nature of both its results and the structure of the coordinate and facet index arrays that its methods will populate.
The sizes and strides of the target arrays should be specified explicitly as they are not inferred by the presence of other options.
Modifiers of Options return a reference to itself to facilitate inline usage.
Definition at line 65 of file tessellation.h.
|
inline |
Definition at line 67 of file tessellation.h.
|
inline |
Return the stride between (u,v) pairs.
Definition at line 90 of file tessellation.h.
|
inline |
Definition at line 80 of file tessellation.h.
|
inline |
Return the stride between facets.
Definition at line 85 of file tessellation.h.
|
inline |
Return if preservation of quads is set.
Definition at line 74 of file tessellation.h.
|
inline |
Select preservation of quads for quad-based subdivision (requires 4-sided facets, default is off)
Definition at line 343 of file tessellation.h.
|
inline |
Assign the stride between (u,v) pairs (default is 2)
Definition at line 358 of file tessellation.h.
|
inline |
Assign the number of indices per facet (must be 3 or 4, default is 3)
Definition at line 348 of file tessellation.h.
|
inline |
Assign the stride between facets (default is facet size)
Definition at line 353 of file tessellation.h.