54#ifndef OPENMESH_SUBDIVIDER_UNIFORM_COMPOSITELOOPT_HH
55#define OPENMESH_SUBDIVIDER_UNIFORM_COMPOSITELOOPT_HH
60#include "Composite/CompositeT.hh"
61#include "Composite/CompositeTraits.hh"
75template <
class MeshType,
class RealType =
double>
90 const char *
name()
const override {
return "Uniform Composite Loop"; }
98 Inherited::EVc(coeffs_);
100 Inherited::EVc(coeffs_);
105 typedef typename Inherited::Coeff Coeff;
115 void init(
size_t _max_valence)
117 weights_.resize(_max_valence);
118 std::generate(weights_.begin(),
122 double operator()(
size_t _valence)
override {
return weights_[_valence]; }
129 double operator()(
void)
134 double f1 = 1.5 + cos(2.0*M_PI/val_++);
135 return 0.5 * f1 * f1 - 1.0;
141 std::vector<double> weights_;
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:59
This class provides the composite subdivision rules for the uniform case.
Definition: CompositeT.hh:90
Abstract base class for coefficient functions.
Definition: CompositeT.hh:158
Uniform composite Loop subdivision algorithm.
Definition: CompositeLoopT.hh:77
void apply_rules(void) override
Assemble here the rule sequence, by calling the constructor of the wanted rules.
Definition: CompositeLoopT.hh:94
const char * name() const override
Return name of subdivision algorithm.
Definition: CompositeLoopT.hh:90
Helper struct.
Definition: CompositeLoopT.hh:112
Definition: CompositeLoopT.hh:126