Subversion Repositories gelsvn

Rev

Rev 129 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 129 Rev 145
1
#ifndef __VERTEX_H__
1
#ifndef __VERTEX_H__
2
#define __VERTEX_H__
2
#define __VERTEX_H__
3
 
3
 
4
#include "templates.h"
4
#include "templates.h"
5
 
5
 
6
 
6
 
7
namespace HMesh
7
namespace HMesh
8
{
8
{
9
 
9
 
10
	/// Compute valency, i.e. number of incident edges.
10
	/// Compute valency, i.e. number of incident edges.
11
	int valency(VertexIter v);
11
	int valency(VertexIter v);
12
 
12
 
13
	/** Compute the vertex normal. This function computes the angle
13
	/** Compute the vertex normal. This function computes the angle
14
			weighted sum of incident face normals. */
14
			weighted sum of incident face normals. */
15
	const CGLA::Vec3f normal(VertexIter v);
15
	const CGLA::Vec3f normal(VertexIter v);
16
 
16
 
17
	/** Returns true if the two argument vertices are in each other's 
17
	/** Returns true if the two argument vertices are in each other's 
18
			one-rings. */
18
			one-rings. */
19
	bool is_connected(VertexIter v1, VertexIter v2);
19
	bool is_connected(VertexIter v1, VertexIter v2);
20
 
20
 
21
	/** Returns true if the vertex is a boundary vertex. */
21
	/** Returns true if the vertex is a boundary vertex. */
22
	bool is_boundary(VertexIter v);
22
	bool is_boundary(VertexIter v);
23
 
23
 
24
	/** Check and enforce boundary consistency. */
24
	/** Check and enforce boundary consistency. */
25
	void check_boundary_consistency(VertexIter v);
25
	void check_boundary_consistency(VertexIter v);
26
 
26
 
27
 
27
 
28
 
28
 
29
}
29
}
30
#endif
30
#endif
31
 
31