OpenMesh
|
Wrapper for mesh item iterators. More...
#include <Python/Iterator.hh>
Public Member Functions | |
IteratorWrapperT (const PolyMesh &_mesh, typename Iterator::value_type _hnd, bool _skip=false) | |
Constructor. More... | |
IteratorWrapperT (const TriMesh &_mesh, typename Iterator::value_type _hnd, bool _skip=false) | |
Constructor. More... | |
IteratorWrapperT | iter () const |
Implementation of Python's __iter__ magic method. More... | |
Iterator::value_type | next () |
Implementation of Python's __next__ magic method. More... | |
unsigned int | len () const |
Implementation of Python's __len__ magic method. More... | |
Wrapper for mesh item iterators.
This class template is used to wrap mesh item iterators for Python. It implements Python's iterator protocol (the magic methods __iter__ and __next__).
Iterator | An iterator type. |
n_items | A member function pointer that points to the mesh function that returns the number of items to iterate over (e.g. n_vertices). |
|
inline |
Constructor.
_mesh | The mesh that contains the items to iterate over. |
_hnd | The handle of the first item to iterate over. |
_skip | Specifies if deleted/hidden elements are skipped. |
|
inline |
Constructor.
_mesh | The mesh that contains the items to iterate over. |
_hnd | The handle of the first item to iterate over. |
_skip | Specifies if deleted/hidden elements are skipped. |
|
inline |
Implementation of Python's __iter__ magic method.
|
inline |
Implementation of Python's __len__ magic method.
|
inline |
Implementation of Python's __next__ magic method.