Subversion Repositories gelsvn

Rev

Rev 129 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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