Subversion Repositories gelsvn

Rev

Rev 67 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
39 bj 1
#ifndef __HALFEDGE_H
2
#define __HALFEDGE_H
3
 
4
#include "templates.h"
5
 
6
namespace HMesh
7
{
8
 
9
	typedef HalfEdge_template<Iters> HalfEdge;
10
	typedef Iters::HalfEdgeList HalfEdgeList;
11
	typedef Iters::HalfEdgeIter HalfEdgeIter;
12
 
94 bj 13
	/// Returns true if the halfedge is a boundary halfedge.
62 jab 14
	bool is_boundary(HalfEdgeIter h);
39 bj 15
 
16
	/** Null Element for halfedge lists. This is used as the value of an iterator
17
			that points to nothing. */
18
	extern HalfEdgeIter NULL_HALFEDGE_ITER;
19
 
20
	/** Set the next and prev pointers of the first and second argument 
21
			respectively. */
22
	void link(HalfEdgeIter, HalfEdgeIter);
23
 
24
	/** Glue halfedges by letting the opp pointers point to each other. */
25
	void glue(HalfEdgeIter, HalfEdgeIter);
26
 
27
	/// Return the geometric length of a halfedge.
28
	float length(HalfEdgeIter);
29
 
30
}
31
#endif