54 #ifndef OPENMESH_SUBDIVIDER_UNIFORM_COMPOSITESQRT3T_HH 55 #define OPENMESH_SUBDIVIDER_UNIFORM_COMPOSITESQRT3T_HH 60 #include "Composite/CompositeT.hh" 61 #include "Composite/CompositeTraits.hh" 67 namespace Subdivider {
75 template <
typename MeshType,
typename RealType =
double>
90 const char *
name()
const override {
return "Uniform Composite Sqrt3"; }
99 Inherited::FVc(coeffs_);
111 FVCoeff() : Coeff() { init(50); }
113 void init(
size_t _max_valence)
115 weights_.resize(_max_valence);
116 std::generate(weights_.begin(),
120 double operator()(
size_t _valence)
override {
return weights_[_valence]; }
128 double operator()(
void)
130 return 2.0/3.0 * (cos(2.0*M_PI/val_++)+1.0);
135 std::vector<double> weights_;
147 #endif // OPENMESH_SUBDIVIDER_UNIFORM_COMPOSITESQRT3T_HH defined