Subversion Repositories gelsvn

Rev

Go to most recent revision | Details | 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
 
62 jab 13
	bool is_boundary(HalfEdgeIter h);
39 bj 14
 
15
	/** Null Element for halfedge lists. This is used as the value of an iterator
16
			that points to nothing. */
17
	extern HalfEdgeIter NULL_HALFEDGE_ITER;
18
 
19
	/** Set the next and prev pointers of the first and second argument 
20
			respectively. */
21
	void link(HalfEdgeIter, HalfEdgeIter);
22
 
23
	/** Glue halfedges by letting the opp pointers point to each other. */
24
	void glue(HalfEdgeIter, HalfEdgeIter);
25
 
26
	/// Return the geometric length of a halfedge.
27
	float length(HalfEdgeIter);
28
 
29
}
30
#endif