Subversion Repositories gelsvn

Rev

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

Rev 89 Rev 178
Line 22... Line 22...
22
		bool failed_flag;
22
			bool failed_flag;
23
 
23
 
24
 
24
 
25
	public:
25
		public:
26
		
26
		
-
 
27
			/** Construct a vertex circulator from a vertex.
-
 
28
					This constructor creates a vertex circulator which starts at a random
-
 
29
					point in the one ring. */
27
		VertexCirculator(VertexIter v): 
30
			VertexCirculator(VertexIter v): 
28
			last(v->he), 
31
				last(v->he), 
29
				 he(last),
32
				he(last),
30
				 steps(0),
33
				steps(0),
31
				 failed_flag(false)
34
				failed_flag(false)
32
		{
35
				{
33
			assert(v->he != NULL_HALFEDGE_ITER);
36
					assert(v->he != NULL_HALFEDGE_ITER);
34
		}
37
				}
35
 
38
		
-
 
39
			/** Construct a vertex circulator from a halfedge.
-
 
40
					This constructor creates a vertex circulator which circles the 
-
 
41
					halfedge from which h emanates (i.e. h->opp->vert). 
-
 
42
					The circulator starts at the position indicated by h. */
-
 
43
			VertexCirculator(HalfEdgeIter h): 
-
 
44
				last(h), 
-
 
45
				he(last),
-
 
46
				steps(0),
-
 
47
				failed_flag(false)
-
 
48
				{
-
 
49
					assert(h != NULL_HALFEDGE_ITER);
-
 
50
				}
-
 
51
 
36
		/// Get current halfedge
52
			/// Get current halfedge
37
		HalfEdgeIter get_halfedge() const { return he;}
53
			HalfEdgeIter get_halfedge() const { return he;}
38
 
54
 
39
		/// Get current vertex, i.e. the vertex pointed to by current halfege
55
			/// Get current vertex, i.e. the vertex pointed to by current halfege
40
		VertexIter get_vertex() const { return he->vert;}
56
			VertexIter get_vertex() const { return he->vert;}
41
 
57
 
42
 
-
 
43
		/// Get opposite halfedge, i.e. the one pointing towards us.
58
			/// Get opposite halfedge, i.e. the one pointing towards us.
44
		HalfEdgeIter get_opp_halfedge() const { return he->opp;}
59
			HalfEdgeIter get_opp_halfedge() const { return he->opp;}
45
 
60
 
46
		/// Get the face of the current halfedge.
61
			/// Get the face of the current halfedge.
47
		FaceIter get_face() const { return he->face;}
62
			FaceIter get_face() const { return he->face;}