OpenSubdiv
|
Uniform refinement options. More...
#include <topologyRefiner.h>
Public Member Functions | |
UniformOptions (int level) | |
void | SetRefinementLevel (int level) |
Set uniform refinement level. | |
Public Attributes | |
unsigned int | refinementLevel:4 |
Number of refinement iterations. | |
unsigned int | orderVerticesFromFacesFirst:1 |
unsigned int | fullTopologyInLastLevel:1 |
Uniform refinement options.
Options for uniform refinement, including the number of levels, vertex ordering and generation of topology information.
Note the impact of the option to generate fullTopologyInLastLevel. Given subsequent levels of uniform refinement typically reguire 4x the data of the previous level, only the minimum amount of data is generated in the last level by default, i.e. a vertex and face-vertex list. If requiring topology traversal of the last level, e.g. inspecting edges or incident faces of vertices, the option to generate full topology in the last level should be enabled.
Definition at line 118 of file topologyRefiner.h.
|
inline |
Definition at line 120 of file topologyRefiner.h.
|
inline |
Set uniform refinement level.
Definition at line 126 of file topologyRefiner.h.
unsigned int fullTopologyInLastLevel |
Skip topological relationships in the last level of refinement that are not needed for interpolation (keep false if using limit).
Definition at line 131 of file topologyRefiner.h.
unsigned int orderVerticesFromFacesFirst |
Order child vertices from faces first instead of child vertices of vertices
Definition at line 129 of file topologyRefiner.h.
unsigned int refinementLevel |
Number of refinement iterations.
Definition at line 128 of file topologyRefiner.h.