diff --git a/src/OpenMesh/Core/Mesh/IteratorsT.hh b/src/OpenMesh/Core/Mesh/IteratorsT.hh index d083536b..f553dcdb 100644 --- a/src/OpenMesh/Core/Mesh/IteratorsT.hh +++ b/src/OpenMesh/Core/Mesh/IteratorsT.hh @@ -77,7 +77,7 @@ template class ConstFaceIterT; template class FaceIterT; -template +template class GenericIteratorT { public: //--- Typedefs --- @@ -103,7 +103,7 @@ class GenericIteratorT { if (_skip) enable_skipping(); // Set vertex handle invalid if the mesh contains no vertex - if(_mesh.n_vertices() == 0) hnd_ = value_handle(-1); + if((mesh_->*PrimitiveCountMember)() == 0) hnd_ = value_handle(-1); } /// Standard dereferencing operator. @@ -154,7 +154,7 @@ class GenericIteratorT { /// Turn on skipping: automatically skip deleted/hidden elements void enable_skipping() { - if (mesh_ && (mesh_->*PrimitiveStatusFn)()) { + if (mesh_ && (mesh_->*PrimitiveStatusMember)()) { Attributes::StatusInfo status; status.set_deleted(true); status.set_hidden(true); @@ -173,7 +173,7 @@ class GenericIteratorT { void skip_fwd() { assert(mesh_ && skip_bits_); - while ((hnd_.idx() < (signed) mesh_->n_vertices()) + while ((hnd_.idx() < (signed) (mesh_->*PrimitiveCountMember)()) && (mesh_->status(hnd_).bits() & skip_bits_)) hnd_.__increment(); } diff --git a/src/OpenMesh/Core/Mesh/PolyConnectivity.hh b/src/OpenMesh/Core/Mesh/PolyConnectivity.hh index fdfe9670..955c8a86 100644 --- a/src/OpenMesh/Core/Mesh/PolyConnectivity.hh +++ b/src/OpenMesh/Core/Mesh/PolyConnectivity.hh @@ -76,10 +76,10 @@ public: */ //@{ /// Linear iterator - typedef Iterators::GenericIteratorT VertexIter; - typedef Iterators::GenericIteratorT HalfedgeIter; - typedef Iterators::GenericIteratorT EdgeIter; - typedef Iterators::GenericIteratorT FaceIter; + typedef Iterators::GenericIteratorT VertexIter; + typedef Iterators::GenericIteratorT HalfedgeIter; + typedef Iterators::GenericIteratorT EdgeIter; + typedef Iterators::GenericIteratorT FaceIter; typedef VertexIter ConstVertexIter; typedef HalfedgeIter ConstHalfedgeIter;