59#ifndef OPENMESH_SUBDIVIDER_UNIFORM_COMPOSITESQRT3T_HH
60#define OPENMESH_SUBDIVIDER_UNIFORM_COMPOSITESQRT3T_HH
80template <
typename MeshType,
typename RealType=
float>
95 const char *
name()
const {
return "Uniform Composite Sqrt3"; }
104 Inherited::FVc(coeffs_);
109 typedef typename Inherited::Coeff Coeff;
118 void init(
size_t _max_valence)
120 weights_.resize(_max_valence);
121 std::generate(weights_.begin(),
125 double operator()(
size_t _valence) {
return weights_[_valence]; }
133 double operator()(
void)
135 return 2.0/3.0 * (cos(2.0*M_PI/val_++)+1.0);
140 std::vector<double> weights_;
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition MeshItems.hh:64
This class provides the composite subdivision rules for the uniform case.
Definition CompositeT.hh:95
Abstract base class for coefficient functions.
Definition CompositeT.hh:163
Uniform composite sqrt(3) subdivision algorithm.
Definition CompositeSqrt3T.hh:82
void apply_rules(void)
Assemble here the rule sequence, by calling the constructor of the wanted rules.
Definition CompositeSqrt3T.hh:99
const char * name() const
Return name of subdivision algorithm.
Definition CompositeSqrt3T.hh:95
Helper class.
Definition CompositeSqrt3T.hh:115
Definition CompositeSqrt3T.hh:130
Mesh traits for uniform composite subdivision.