56 #ifndef OPENMESH_STRIPIFIERT_HH 57 #define OPENMESH_STRIPIFIERT_HH 63 #include <OpenMesh/Core/Utils/Property.hh> 88 typedef unsigned int Index;
89 typedef std::vector<Index> Strip;
90 typedef typename Strip::const_iterator IndexIterator;
91 typedef std::vector<Strip> Strips;
92 typedef typename Strips::const_iterator StripsIterator;
105 void clear() { Strips().swap(strips_); }
114 StripsIterator
begin()
const {
return strips_.begin(); }
116 StripsIterator
end()
const {
return strips_.end(); }
121 typedef std::vector<typename Mesh::FaceHandle> FaceHandles;
128 void build_strip(
typename Mesh::HalfedgeHandle _start_hh,
130 FaceHandles& _faces);
133 return mesh_.property(processed_, _fh);
136 return mesh_.property(used_, _fh);
152 #if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_STRIPIFIERT_C) 153 #define OPENMESH_STRIPIFIERT_TEMPLATES 154 #include "StripifierT.cc" 157 #endif // OPENMESH_STRIPIFIERT_HH defined size_t n_strips() const
returns number of strips
Definition: StripifierT.hh:108
bool is_valid() const
are strips computed?
Definition: StripifierT.hh:111
size_t stripify()
Compute triangle strips, returns number of strips.
Definition: StripifierT.cc:87
StripifierT(Mesh &_mesh)
Default constructor.
Definition: StripifierT.cc:72
~StripifierT()
Destructor.
Definition: StripifierT.cc:80
Handle representing a face property.
Definition: Property.hh:529
void clear()
delete all strips
Definition: StripifierT.hh:105
This class decomposes a triangle mesh into several triangle strips.
Definition: StripifierT.hh:84
StripsIterator begin() const
Access strips.
Definition: StripifierT.hh:114
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:64
StripsIterator end() const
Access strips.
Definition: StripifierT.hh:116