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 __VERTEX_H__
2
#define __VERTEX_H__
3
 
4
#include "templates.h"
5
 
6
 
7
namespace HMesh
8
{
9
	typedef Vertex_template<Iters> Vertex;
10
	typedef Iters::VertexList VertexList;
11
	typedef Iters::VertexIter VertexIter;
12
 
13
	/** Null Element for vertex lists. This is used as the value of an iterator
14
			that points to nothing. */
15
	extern VertexIter NULL_VERTEX_ITER;
16
 
17
	/// Compute valency, i.e. number of incident edges.
18
	int valency(VertexIter v);
19
 
20
	/** Compute the vertex normal. This function computes the angle
21
			weighted sum of incident face normals. */
22
	const CGLA::Vec3f normal(VertexIter v);
23
 
24
	/** Returns true if the two argument vertices are in each other's 
25
			one-rings. */
26
	bool is_connected(VertexIter v1, VertexIter v2);
27
 
28
 
29
}
30
#endif