OpenMesh
OpenMesh::Subdivider::Uniform::InterpolatingSqrt3LGT< MeshType, RealType > Class Template Reference

Uniform Interpolating Sqrt3 subdivision algorithm More...

#include <OpenMesh/Tools/Subdivider/Uniform/Sqrt3InterpolatingSubdividerLabsikGreinerT.hh>

Inheritance diagram for OpenMesh::Subdivider::Uniform::InterpolatingSqrt3LGT< MeshType, RealType >:
Collaboration diagram for OpenMesh::Subdivider::Uniform::InterpolatingSqrt3LGT< MeshType, RealType >:

List of all members.

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

Public Member Functions

 InterpolatingSqrt3LGT (MeshType &_m)
const char * name () const
 Return name of subdivision algorithm.
void init_weights (size_t _max_valence=50)
 Pre-compute weights.

Protected Member Functions

bool prepare (MeshType &_m)
 Prepare mesh, e.g. add properties.
bool cleanup (MeshType &_m)
 Cleanup mesh after usage, e.g. remove added properties.
bool subdivide (MeshType &_m, size_t _n, const bool _update_points=true)
 Subdivide mesh _m _n times.

Detailed Description

template<typename MeshType, typename RealType = float>
class OpenMesh::Subdivider::Uniform::InterpolatingSqrt3LGT< MeshType, RealType >

Uniform Interpolating Sqrt3 subdivision algorithm

Implementation of the interpolating Labsik Greiner Subdivider as described in "interpolating sqrt(3) subdivision" Labsik & Greiner, 2000

Clement Courbet - clement.courbet@ecp.fr


Member Function Documentation

template<typename MeshType , typename RealType = float>
bool OpenMesh::Subdivider::Uniform::InterpolatingSqrt3LGT< MeshType, RealType >::subdivide ( MeshType &  _m,
size_t  _n,
const bool  _update_points = true 
) [inline, protected, virtual]

Subdivide mesh _m _n times.

TODO:Implement fixed positions

Implements OpenMesh::Subdivider::Uniform::SubdividerT< MeshType, RealType >.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines