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 StripifierT(Mesh &_mesh)
Default constructor.
bool is_valid() const
are strips computed?
void clear()
delete all strips
StripsIterator begin() const
Access strips.
size_t stripify()
Compute triangle strips, returns number of strips.
void build_strip(typename Mesh::HalfedgeHandle _start_hh, Strip &_strip, FaceHandles &_faces)
build a strip from a given halfedge (in both directions)
StripsIterator end() const
Access strips.
size_t n_strips() const
returns number of strips
void build_strips()
this method does the main work
~StripifierT()
Destructor.