Developer Documentation
|
#include <OpenFlipper/libs_required/OpenMesh/src/OpenMesh/Tools/Subdivider/Uniform/ModifiedButterFlyT.hh>
Public Types | |
typedef RealType | real_t |
typedef MeshType | mesh_t |
typedef SubdividerT< mesh_t, real_t > | parent_t |
typedef std::vector< std::vector< real_t > > | weights_t |
typedef std::vector< real_t > | weight_t |
Public Types inherited from OpenMesh::Subdivider::Uniform::SubdividerT< MeshType, RealType > | |
typedef MeshType | mesh_t |
typedef RealType | real_t |
Public Member Functions | |
ModifiedButterflyT (mesh_t &_m) | |
const char * | name () const override |
Return name of subdivision algorithm. | |
void | init_weights (size_t _max_valence=30) |
Pre-compute weights. | |
Public Member Functions inherited from OpenMesh::Subdivider::Uniform::SubdividerT< MeshType, RealType > | |
virtual | ~SubdividerT () |
Destructor (calls detach()) | |
SubdividerT (void) | |
SubdividerT (MeshType &_m) | |
bool | operator() (MeshType &_m, size_t _n, const bool _update_points=true) |
bool | attach (MeshType &_m) |
bool | operator() (size_t _n, const bool _update_points=true) |
void | detach (void) |
Protected Member Functions | |
bool | prepare (mesh_t &_m) override |
Prepare mesh, e.g. add properties. | |
bool | cleanup (mesh_t &_m) override |
Cleanup mesh after usage, e.g. remove added properties. | |
bool | subdivide (MeshType &_m, size_t _n, const bool _update_points=true) override |
Subdivide mesh _m _n times. More... | |
Overload theses methods |
Private Attributes | |
OpenMesh::VPropHandleT< typename mesh_t::Point > | vp_pos_ |
OpenMesh::EPropHandleT< typename mesh_t::Point > | ep_pos_ |
weights_t | weights |
Modified Butterfly subdivision algorithm
Implementation of the modified butterfly scheme of Denis Zorin, Peter Schröder and Wim Sweldens, ``Interpolating subdivision for meshes with arbitrary topology,'' in Proceedings of SIGGRAPH 1996, ACM SIGGRAPH, 1996, pp. 189-192.
Clement Courbet - cleme nt.c ourbe t@ec p.fr
Definition at line 92 of file ModifiedButterFlyT.hh.
|
inlineoverrideprotectedvirtual |
Subdivide mesh _m
_n
times.
TODO:Implement fixed positions
Implements OpenMesh::Subdivider::Uniform::SubdividerT< MeshType, RealType >.
Definition at line 177 of file ModifiedButterFlyT.hh.