 |
OpenMesh
|
Go to the documentation of this file.
59 #ifndef OPENMESH_SUBDIVIDER_UNIFORM_COMPOSITESQRT3T_HH
60 #define OPENMESH_SUBDIVIDER_UNIFORM_COMPOSITESQRT3T_HH
65 #include "Composite/CompositeT.hh"
66 #include "Composite/CompositeTraits.hh"
72 namespace Subdivider {
80 template <
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_;
152 #endif // OPENMESH_SUBDIVIDER_UNIFORM_COMPOSITESQRT3T_HH defined
Uniform composite sqrt(3) subdivision algorithm.
Definition: CompositeSqrt3T.hh:81
Abstract base class for coefficient functions.
Definition: CompositeT.hh:162
void apply_rules(void)
Assemble here the rule sequence, by calling the constructor of the wanted rules.
Definition: CompositeSqrt3T.hh:99
Helper class.
Definition: CompositeSqrt3T.hh:114
Martin, 26.12.2004: 1) replaced resize(size()-1) with pop_back(), since the later is more efficient 2...
Definition: MeshItems.hh:64
const char * name() const
Return name of subdivision algorithm.
Definition: CompositeSqrt3T.hh:95
This class provides the composite subdivision rules for the uniform case.
Definition: CompositeT.hh:94
Definition: CompositeSqrt3T.hh:129
Project OpenMesh,
© Computer Graphics Group, RWTH Aachen.
Documentation generated using
doxygen
.