Developer Documentation
|
#include <libs_required/OpenMesh/src/OpenMesh/Tools/Subdivider/Uniform/SubdividerT.hh>
Public Types | |
typedef MeshType | mesh_t |
typedef RealType | real_t |
Public Member Functions | |
virtual | ~SubdividerT () |
Descructor (calls detach()) | |
virtual const char * | name (void) const =0 |
Return name of subdivision algorithm. | |
Constructors | |
SubdividerT (void) | |
SubdividerT (MeshType &_m) | |
Interface 1 | |
bool | operator() (MeshType &_m, size_t _n, const bool _update_points=true) |
Interface 2 | |
bool | attach (MeshType &_m) |
bool | operator() (size_t _n, const bool _update_points=true) |
void | detach (void) |
Protected Member Functions | |
Overload theses methods | |
virtual bool | prepare (MeshType &_m)=0 |
Prepare mesh, e.g. add properties. | |
virtual bool | subdivide (MeshType &_m, size_t _n, const bool _update_points=true)=0 |
Subdivide mesh _m _n times. | |
virtual bool | cleanup (MeshType &_m)=0 |
Cleanup mesh after usage, e.g. remove added properties. | |
Private Attributes | |
MeshType * | attached_ |
Abstract base class for uniform subdivision algorithms.
A derived class must overload the following functions:
Definition at line 94 of file SubdividerT.hh.
|
inline |
Constructor to be used with interface 2
Definition at line 107 of file SubdividerT.hh.
|
inline |
Constructor to be used with interface 1 (calls attach())
Definition at line 111 of file SubdividerT.hh.
|
inline |
Attach mesh _m
to self
Definition at line 138 of file SubdividerT.hh.
|
inline |
Detach an eventually attached mesh.
Definition at line 161 of file SubdividerT.hh.
|
inline |
Subdivide the mesh _m
_n
times.
Definition at line 128 of file SubdividerT.hh.
|
inline |
Subdivide the attached _n
times.
Definition at line 154 of file SubdividerT.hh.