54 #ifndef OPENMESH_SUBDIVIDER_UNIFORM_COMPOSITE_HH 55 #define OPENMESH_SUBDIVIDER_UNIFORM_COMPOSITE_HH 68 namespace Subdivider {
88 template <
typename MeshType,
typename RealType=
float >
93 typedef RealType real_t;
94 typedef MeshType mesh_t;
99 CompositeT(
void) : parent_t(), p_mesh_(
nullptr) {}
100 explicit CompositeT(MeshType& _mesh) : parent_t(_mesh), p_mesh_(
nullptr) {};
105 virtual const char *
name(
void )
const override = 0;
109 bool prepare( MeshType& _m )
override;
111 bool subdivide( MeshType& _m,
size_t _n,
const bool _update_points =
true )
override 113 assert( p_mesh_ == &_m );
125 bool cleanup( MeshType& )
override 130 assert( p_mesh_ == &_m );
147 typename MeshType::VertexIter v_it;
149 for (v_it=_m.vertices_begin(); v_it != _m.vertices_end(); ++v_it)
150 _m.set_point(*v_it, _m.data(*v_it).position());
160 virtual double operator() (
size_t _valence) = 0;
166 typedef typename MeshType::Scalar scalar_t;
167 typedef typename MeshType::VertexHandle VertexHandle;
168 typedef typename MeshType::FaceHandle FaceHandle;
169 typedef typename MeshType::EdgeHandle EdgeHandle;
170 typedef typename MeshType::HalfedgeHandle HalfedgeHandle;
182 void FFc(scalar_t _c);
186 void FVc(scalar_t _c);
192 void VFa(scalar_t _alpha);
196 void VVc(scalar_t _c);
202 void VdEc(scalar_t _c);
209 void VdEg(scalar_t _gamma);
215 void EVc(scalar_t _c);
218 void EdEc(scalar_t _c);
239 #if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_SUBDIVIDER_UNIFORM_COMPOSITE_CC) 240 #define OPENMESH_SUBDIVIDER_TEMPLATES 241 #include "CompositeT_impl.hh" 244 #endif // COMPOSITET_HH defined