Subversion Repositories gelsvn

Rev

Rev 89 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 89 Rev 178
Line 19... Line 19...
19
		HalfEdgeIter last;
19
		HalfEdgeIter last;
20
		HalfEdgeIter he;
20
		HalfEdgeIter he;
21
		int steps;
21
		int steps;
22
 
22
 
23
		public:
23
		public:
24
 
24
		
-
 
25
		/** Construct a face iterator from a face f.
-
 
26
				This iterator moves around f starting from the (arbitrary) halfedge
-
 
27
				indicated by f. */
25
		FaceCirculator(FaceIter f): 
28
		FaceCirculator(FaceIter f): 
26
			last(f->last), 
29
			last(f->last), 
27
				 he(last),
30
				 he(last),
28
				 steps(0) {}
31
				 steps(0) {}
29
 
32
 
-
 
33
		/** Construct a face iterator from a halfedge h.
-
 
34
				This iterator moves around f starting from h. */
-
 
35
		FaceCirculator(HalfEdgeIter h): 
-
 
36
			last(h), 
-
 
37
			he(last),
-
 
38
			steps(0) {}
-
 
39
 
30
		/// Return current vertex pointed to by circulator.
40
		/// Return current vertex pointed to by circulator.
31
		VertexIter get_vertex() const { return he->vert;}
41
		VertexIter get_vertex() const { return he->vert;}
32
 
42
 
33
		/// Return current halfedge pointed to by circulator
43
		/// Return current halfedge pointed to by circulator
34
		HalfEdgeIter get_halfedge() const { return he->next;}
44
		HalfEdgeIter get_halfedge() const { return he->next;}