![]() |
OpenSubdiv
|
Stores topology data for a specified set of refinement options. More...
#include <topologyRefiner.h>
Classes | |
| struct | UniformOptions |
| Uniform refinement options. More... | |
| struct | AdaptiveOptions |
| Adaptive refinement options. More... | |
Public Member Functions | |
| TopologyRefiner (Sdc::SchemeType type, Sdc::Options options=Sdc::Options()) | |
| Constructor. | |
| ~TopologyRefiner () | |
| Destructor. | |
| Sdc::SchemeType | GetSchemeType () const |
| Returns the subdivision scheme. | |
| Sdc::Options | GetSchemeOptions () const |
| Returns the subdivision options. | |
| bool | IsUniform () const |
| Returns true if uniform refinement has been applied. | |
| int | GetNumLevels () const |
| Returns the number of refinement levels. | |
| int | GetMaxLevel () const |
| Returns the highest level of refinement. | |
| int | GetMaxValence () const |
| Returns the maximum vertex valence in all levels. | |
| bool | HasHoles () const |
| Returns true if faces have been tagged as holes. | |
| int | GetNumVerticesTotal () const |
| Returns the total number of vertices in all levels. | |
| int | GetNumEdgesTotal () const |
| Returns the total number of edges in all levels. | |
| int | GetNumFacesTotal () const |
| Returns the total number of edges in all levels. | |
| int | GetNumFaceVerticesTotal () const |
| Returns the total number of face vertices in all levels. | |
| TopologyLevel const & | GetLevel (int level) const |
| Returns a handle to access data specific to a particular level. | |
High-level refinement and related methods | |
| void | RefineUniform (UniformOptions options) |
| Refine the topology uniformly. | |
| UniformOptions | GetUniformOptions () const |
| Returns the options specified on refinement. | |
| void | RefineAdaptive (AdaptiveOptions options, ConstIndexArray selectedFaces=ConstIndexArray()) |
| Feature Adaptive topology refinement. | |
| AdaptiveOptions | GetAdaptiveOptions () const |
| Returns the options specified on refinement. | |
| void | Unrefine () |
| Unrefine the topology, keeping only the base level. | |
Number and properties of face-varying channels: | |
| template<class MESH> | |
| class | TopologyRefinerFactory |
| class | TopologyRefinerFactoryBase |
| class | PatchTableBuilder |
| class | PatchBuilder |
| class | PtexIndices |
| template<typename REAL> | |
| class | PrimvarRefinerReal |
| int | GetNumFVarChannels () const |
| Returns the number of face-varying channels in the tables. | |
| Sdc::Options::FVarLinearInterpolation | GetFVarLinearInterpolation (int channel=0) const |
| Returns the face-varying interpolation rule set for a given channel. | |
| int | GetNumFVarValuesTotal (int channel=0) const |
| Returns the total number of face-varying values in all levels. | |
| Vtr::internal::Level & | getLevel (int l) |
| Vtr::internal::Level const & | getLevel (int l) const |
| Vtr::internal::Refinement & | getRefinement (int l) |
| Vtr::internal::Refinement const & | getRefinement (int l) const |
| TopologyRefiner (TopologyRefiner const &source) | |
Stores topology data for a specified set of refinement options.
Definition at line 34 of file topologyRefiner.h.
| TopologyRefiner | ( | Sdc::SchemeType | type, |
| Sdc::Options | options = Sdc::Options() ) |
Constructor.
| ~TopologyRefiner | ( | ) |
Destructor.
|
protected |
|
inline |
Returns the options specified on refinement.
Definition at line 179 of file topologyRefiner.h.
|
inline |
Returns the face-varying interpolation rule set for a given channel.
Definition at line 281 of file topologyRefiner.h.
|
inline |
Returns a handle to access data specific to a particular level.
Definition at line 78 of file topologyRefiner.h.
|
inline |
Definition at line 219 of file topologyRefiner.h.
|
inline |
Definition at line 220 of file topologyRefiner.h.
|
inline |
Returns the highest level of refinement.
Definition at line 57 of file topologyRefiner.h.
|
inline |
Returns the maximum vertex valence in all levels.
Definition at line 60 of file topologyRefiner.h.
|
inline |
Returns the total number of edges in all levels.
Definition at line 69 of file topologyRefiner.h.
|
inline |
Returns the total number of edges in all levels.
Definition at line 72 of file topologyRefiner.h.
|
inline |
Returns the total number of face vertices in all levels.
Definition at line 75 of file topologyRefiner.h.
|
inline |
Returns the number of face-varying channels in the tables.
Definition at line 276 of file topologyRefiner.h.
| int GetNumFVarValuesTotal | ( | int | channel = 0 | ) | const |
Returns the total number of face-varying values in all levels.
|
inline |
Returns the number of refinement levels.
Definition at line 54 of file topologyRefiner.h.
|
inline |
Returns the total number of vertices in all levels.
Definition at line 66 of file topologyRefiner.h.
|
inline |
Definition at line 222 of file topologyRefiner.h.
|
inline |
Definition at line 223 of file topologyRefiner.h.
|
inline |
Returns the subdivision options.
Definition at line 48 of file topologyRefiner.h.
|
inline |
Returns the subdivision scheme.
Definition at line 45 of file topologyRefiner.h.
|
inline |
Returns the options specified on refinement.
Definition at line 132 of file topologyRefiner.h.
|
inline |
Returns true if faces have been tagged as holes.
Definition at line 63 of file topologyRefiner.h.
|
inline |
Returns true if uniform refinement has been applied.
Definition at line 51 of file topologyRefiner.h.
| void RefineAdaptive | ( | AdaptiveOptions | options, |
| ConstIndexArray | selectedFaces = ConstIndexArray() ) |
Feature Adaptive topology refinement.
| options | Options controlling adaptive refinement |
| selectedFaces | Limit adaptive refinement to the specified faces |
| void RefineUniform | ( | UniformOptions | options | ) |
Refine the topology uniformly.
This method applies uniform refinement to the level specified in the given UniformOptions.
Note the impact of the UniformOption to generate fullTopologyInLastLevel and be sure it is assigned to satisfy the needs of the resulting refinement.
| options | Options controlling uniform refinement |
| void Unrefine | ( | ) |
Unrefine the topology, keeping only the base level.
|
friend |
Definition at line 209 of file topologyRefiner.h.
|
friend |
Definition at line 208 of file topologyRefiner.h.
|
friend |
Definition at line 212 of file topologyRefiner.h.
|
friend |
Definition at line 210 of file topologyRefiner.h.
|
friend |
Definition at line 206 of file topologyRefiner.h.
|
friend |
Definition at line 207 of file topologyRefiner.h.