1 #ifndef DELAUNATOR_FACE_ITERATORS_H_INCLUDED
2 #define DELAUNATOR_FACE_ITERATORS_H_INCLUDED
14 #include "iterators.h"
41 this->it = this->faces->begin();
43 while(!(*this->it)->isVisible()) this->it++;
52 return this->it != othr.it;
54 bool operator!=(
const std::vector<Face*>::iterator& ot)
const {
55 return this->it != ot;
62 std::vector<Face*>::iterator begin()
const {
return this->faces->begin(); }
63 std::vector<Face*>::iterator end()
const {
return this->faces->end(); }
64 std::vector<Face*>* getFaces()
const {
return this->faces; }
67 std::vector<Face*>* faces;
68 std::vector<Face*>::iterator it;
75 this->it = this->faces->begin();
77 while(!(*this->it)->isVisible()) this->it++;
86 return this->it != othr.it;
88 bool operator!=(
const std::vector<Face*>::const_iterator& ot)
const {
89 return this->it != ot;
96 std::vector<Face*>::const_iterator begin()
const {
return this->faces->begin(); }
97 std::vector<Face*>::const_iterator end()
const {
return this->faces->end(); }
98 const std::vector<Face*>* getFaces()
const {
return this->faces; }
101 const std::vector<Face*>*
const faces;
102 std::vector<Face*>::const_iterator it;
117 this->it = this->faces->begin();
126 return this->it != othr.it;
128 bool operator!=(
const std::vector<Face*>::iterator& ot)
const {
129 return this->it != ot;
136 std::vector<Face*>::iterator begin()
const {
return this->faces->begin(); }
137 std::vector<Face*>::iterator end()
const {
return this->faces->end(); }
138 std::vector<Face*>* getFaces()
const {
return this->faces; }
141 std::vector<Face*>* faces;
142 std::vector<Face*>::iterator it;
149 this->it = this->faces->begin();
158 return this->it != othr.it;
160 bool operator!=(
const std::vector<Face*>::const_iterator& ot)
const {
161 return this->it != ot;
168 std::vector<Face*>::const_iterator begin()
const {
return this->faces->begin(); }
169 std::vector<Face*>::const_iterator end()
const {
return this->faces->end(); }
170 const std::vector<Face*>* getFaces()
const {
return this->faces; }
173 const std::vector<Face*>*
const faces;
174 std::vector<Face*>::const_iterator it;
193 this->ref_edge = this->edge;
197 this->edge = this->edge->nextLeftEdge();
198 if(this->edge == this->ref_edge)
204 return this->edge != othr.edge;
206 bool operator!=(
const Edge* ot)
const {
207 return this->edge != ot;
211 return this->edge->originVertex();
214 Edge* begin()
const {
return this->ref_edge; }
215 Edge* end()
const {
return NULL; }
236 this->ref_edge = this->edge;
240 this->edge = this->edge->nextLeftEdge();
241 if(this->edge == this->ref_edge)
247 return this->edge != othr.edge;
249 bool operator!=(
const Edge* ot)
const {
250 return this->edge != ot;
257 Edge* begin()
const {
return this->ref_edge; }
258 Edge* end()
const {
return NULL; }
280 this->edge = this->edge->nextLeftEdge();
281 return this->edge->rightFace();