Rewrote vertex-centered circulators.

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@890 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Hans-Christian Ebke
2013-08-07 08:03:42 +00:00
parent 6d70b25445
commit b548bf221f
4 changed files with 283 additions and 1961 deletions

View File

@@ -117,11 +117,13 @@ class GenericIteratorT {
}
/// Get the handle of the item the iterator refers to.
DEPRECATED("This function clutters your code. Use dereferencing operators -> and * instead.")
value_handle handle() const {
return hnd_;
}
/// Cast to the handle of the item the iterator refers to.
DEPRECATED("Implicit casts of iterators are unsafe. Use dereferencing operators -> and * instead.")
operator value_handle() const {
return hnd_;
}
@@ -144,6 +146,13 @@ class GenericIteratorT {
return *this;
}
/// Standard post-increment operator
GenericIteratorT operator++(int) {
GenericIteratorT cpy(*this);
++(*this);
return cpy;
}
/// Standard pre-decrement operator
GenericIteratorT& operator--() {
hnd_.__decrement();
@@ -152,6 +161,13 @@ class GenericIteratorT {
return *this;
}
/// Standard post-decrement operator
GenericIteratorT operator--(int) {
GenericIteratorT cpy(*this);
--(*this);
return cpy;
}
/// Turn on skipping: automatically skip deleted/hidden elements
void enable_skipping() {
if (mesh_ && (mesh_->*PrimitiveStatusMember)()) {