51 #ifndef OPENMESH_STRIPIFIERT_HH 52 #define OPENMESH_STRIPIFIERT_HH 58 #include <OpenMesh/Core/Utils/Property.hh> 83 typedef unsigned int Index;
84 typedef std::vector<Index> Strip;
85 typedef typename Strip::const_iterator IndexIterator;
86 typedef std::vector<Strip> Strips;
87 typedef typename Strips::const_iterator StripsIterator;
100 void clear() { Strips().swap(strips_); }
109 StripsIterator
begin()
const {
return strips_.begin(); }
111 StripsIterator
end()
const {
return strips_.end(); }
116 typedef std::vector<typename Mesh::FaceHandle> FaceHandles;
123 void build_strip(
typename Mesh::HalfedgeHandle _start_hh,
125 FaceHandles& _faces);
128 return mesh_.property(processed_, _fh);
131 return mesh_.property(used_, _fh);
147 #if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_STRIPIFIERT_C) 148 #define OPENMESH_STRIPIFIERT_TEMPLATES 149 #include "StripifierT_impl.hh" 152 #endif // OPENMESH_STRIPIFIERT_HH defined StripsIterator end() const
Access strips.
Definition: StripifierT.hh:111
StripifierT(Mesh &_mesh)
Default constructor.
Definition: StripifierT_impl.hh:67
Handle representing a face property.
Definition: Property.hh:524
~StripifierT()
Destructor.
Definition: StripifierT_impl.hh:75
bool is_valid() const
are strips computed?
Definition: StripifierT.hh:106
size_t stripify()
Compute triangle strips, returns number of strips.
Definition: StripifierT_impl.hh:82
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:59
void clear()
delete all strips
Definition: StripifierT.hh:100
StripsIterator begin() const
Access strips.
Definition: StripifierT.hh:109
size_t n_strips() const
returns number of strips
Definition: StripifierT.hh:103
This class decomposes a triangle mesh into several triangle strips.
Definition: StripifierT.hh:79