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;
 
  125                    FaceHandles& _faces);
 
  128     return mesh_.property(processed_, _fh);
 
  130   FPropHandleT<bool>::reference  used(
typename Mesh::FaceHandle _fh) {
 
  131     return mesh_.property(used_, _fh);
 
  140   FPropHandleT<bool>   processed_, used_;
 
  147 #if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_STRIPIFIERT_C) 
  148 #define OPENMESH_STRIPIFIERT_TEMPLATES 
  149 #include "StripifierT_impl.hh" 
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:59
 
Kernel::FaceHandle FaceHandle
Scalar type.
Definition: PolyMeshT.hh:139
 
Kernel::HalfedgeHandle HalfedgeHandle
Scalar type.
Definition: PolyMeshT.hh:137
 
Handle representing a face property.
Definition: Property.hh:462
 
This class decomposes a triangle mesh into several triangle strips.
Definition: StripifierT.hh:80
 
void clear()
delete all strips
Definition: StripifierT.hh:100
 
StripsIterator end() const
Access strips.
Definition: StripifierT.hh:111
 
size_t stripify()
Compute triangle strips, returns number of strips.
Definition: StripifierT_impl.hh:82
 
~StripifierT()
Destructor.
Definition: StripifierT_impl.hh:75
 
StripifierT(Mesh &_mesh)
Default constructor.
Definition: StripifierT_impl.hh:67
 
bool is_valid() const
are strips computed?
Definition: StripifierT.hh:106
 
StripsIterator begin() const
Access strips.
Definition: StripifierT.hh:109
 
size_t n_strips() const
returns number of strips
Definition: StripifierT.hh:103