3DCoat
3D-COAT 4.9.xx
3DCoat is the one application that has all the tools you need to take your 3D idea from a block of digital clay all the way to a production ready, fully textured organic or hard surface model.
|
Stores topology data for a specified set of refinement options. More...
#include <topologyRefiner.h>
Classes | |
struct | AdaptiveOptions |
Adaptive refinement options. More... | |
struct | UniformOptions |
Uniform refinement options. More... | |
Public Member Functions | |
TopologyRefiner (Sdc::SchemeType type, Sdc::Options options=Sdc::Options()) | |
Constructor. More... | |
~TopologyRefiner () | |
Destructor. More... | |
Sdc::SchemeType | GetSchemeType () const |
Returns the subdivision scheme. More... | |
Sdc::Options | GetSchemeOptions () const |
Returns the subdivision options. More... | |
bool | IsUniform () const |
Returns true if uniform refinement has been applied. More... | |
int | GetNumLevels () const |
Returns the number of refinement levels. More... | |
int | GetMaxLevel () const |
Returns the highest level of refinement. More... | |
int | GetMaxValence () const |
Returns the maximum vertex valence in all levels. More... | |
bool | HasHoles () const |
Returns true if faces have been tagged as holes. More... | |
int | GetNumVerticesTotal () const |
Returns the total number of vertices in all levels. More... | |
int | GetNumEdgesTotal () const |
Returns the total number of edges in all levels. More... | |
int | GetNumFacesTotal () const |
Returns the total number of edges in all levels. More... | |
int | GetNumFaceVerticesTotal () const |
Returns the total number of face vertices in all levels. More... | |
TopologyLevel const & | GetLevel (int level) const |
Returns a handle to access data specific to a particular level. More... | |
High-level refinement and related methods | |
void | RefineUniform (UniformOptions options) |
Refine the topology uniformly. More... | |
UniformOptions | GetUniformOptions () const |
Returns the options specified on refinement. More... | |
void | RefineAdaptive (AdaptiveOptions options, ConstIndexArray selectedFaces=ConstIndexArray()) |
Feature Adaptive topology refinement. More... | |
AdaptiveOptions | GetAdaptiveOptions () const |
Returns the options specified on refinement. More... | |
void | Unrefine () |
Unrefine the topology, keeping only the base level. More... | |
Number and properties of face-varying channels: | |
int | GetNumFVarChannels () const |
Returns the number of face-varying channels in the tables. More... | |
Sdc::Options::FVarLinearInterpolation | GetFVarLinearInterpolation (int channel=0) const |
Returns the face-varying interpolation rule set for a given channel. More... | |
int | GetNumFVarValuesTotal (int channel=0) const |
Returns the total number of face-varying values in all levels. More... | |
Stores topology data for a specified set of refinement options.
OpenSubdiv::v3_4_3::Far::TopologyRefiner::TopologyRefiner | ( | Sdc::SchemeType | type, |
Sdc::Options | options = Sdc::Options() |
||
) |
Constructor.
OpenSubdiv::v3_4_3::Far::TopologyRefiner::~TopologyRefiner | ( | ) |
Destructor.
|
inline |
Returns the options specified on refinement.
Referenced by OpenSubdiv::v3_4_3::Far::LimitStencilTableFactoryReal< REAL >::Create().
|
inline |
Returns the face-varying interpolation rule set for a given channel.
|
inline |
Returns a handle to access data specific to a particular level.
Referenced by OpenSubdiv::v3_4_3::Far::StencilTableFactoryReal< REAL >::Create(), and OpenSubdiv::v3_4_3::Far::LimitStencilTableFactoryReal< REAL >::Create().
|
inline |
Returns the highest level of refinement.
Referenced by OpenSubdiv::v3_4_3::Far::StencilTableFactoryReal< REAL >::Create(), and OpenSubdiv::v3_4_3::Far::LimitStencilTableFactoryReal< REAL >::Create().
|
inline |
Returns the maximum vertex valence in all levels.
|
inline |
Returns the total number of edges in all levels.
|
inline |
Returns the total number of edges in all levels.
|
inline |
Returns the total number of face vertices in all levels.
|
inline |
Returns the number of face-varying channels in the tables.
int OpenSubdiv::v3_4_3::Far::TopologyRefiner::GetNumFVarValuesTotal | ( | int | channel = 0 | ) | const |
Returns the total number of face-varying values in all levels.
Referenced by OpenSubdiv::v3_4_3::Far::LimitStencilTableFactoryReal< REAL >::Create().
|
inline |
Returns the number of refinement levels.
|
inline |
Returns the total number of vertices in all levels.
Referenced by OpenSubdiv::v3_4_3::Far::LimitStencilTableFactoryReal< REAL >::Create().
|
inline |
Returns the subdivision options.
|
inline |
Returns the subdivision scheme.
Referenced by OpenSubdiv::v3_4_3::Far::PtexIndices::GetAdjacency().
|
inline |
Returns the options specified on refinement.
|
inline |
Returns true if faces have been tagged as holes.
|
inline |
Returns true if uniform refinement has been applied.
Referenced by OpenSubdiv::v3_4_3::Far::LimitStencilTableFactoryReal< REAL >::Create().
void OpenSubdiv::v3_4_3::Far::TopologyRefiner::RefineAdaptive | ( | AdaptiveOptions | options, |
ConstIndexArray | selectedFaces = ConstIndexArray() |
||
) |
Feature Adaptive topology refinement.
options | Options controlling adaptive refinement |
selectedFaces | Limit adaptive refinement to the specified faces |
References OpenSubdiv::v3_4_3::Far::TopologyRefiner::AdaptiveOptions::isolationLevel, OpenSubdiv::v3_4_3::Far::TopologyRefiner::AdaptiveOptions::orderVerticesFromFacesFirst, and OpenSubdiv::v3_4_3::Far::TopologyRefiner::AdaptiveOptions::secondaryLevel.
void OpenSubdiv::v3_4_3::Far::TopologyRefiner::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 |
References OpenSubdiv::v3_4_3::Far::TopologyRefiner::UniformOptions::fullTopologyInLastLevel, OpenSubdiv::v3_4_3::Far::TopologyRefiner::UniformOptions::orderVerticesFromFacesFirst, and OpenSubdiv::v3_4_3::Far::TopologyRefiner::UniformOptions::refinementLevel.
void OpenSubdiv::v3_4_3::Far::TopologyRefiner::Unrefine | ( | ) |
Unrefine the topology, keeping only the base level.