Subversion Repositories gelsvn

Rev

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

Rev 129 Rev 393
1
#ifndef __FACE_H__
1
#ifndef __FACE_H__
2
#define __FACE_H__
2
#define __FACE_H__
3
 
3
 
4
#include "templates.h"
4
#include "templates.h"
5
 
5
 
6
namespace HMesh
6
namespace HMesh
7
{
7
{
8
 
8
 
9
 
9
 
10
	/// Compute the number of edges of a face
10
	/// Compute the number of edges of a face
11
	int no_edges(FaceIter v);
11
	int no_edges(FaceIter v);
12
 
12
 
13
	/** Compute the normal of a face. If the face is not a triangle,
13
	/** Compute the normal of a face. If the face is not a triangle,
14
			the normal is not defined, but computed using the first three
14
			the normal is not defined, but computed using the first three
15
			vertices of the face. */
15
			vertices of the face. */
16
	CGLA::Vec3f normal(FaceIter f);
16
	CGLA::Vec3f normal(FaceIter f);
17
 
17
 
18
	/** Compute the area of a face. */
18
	/** Compute the area of a face. */
19
	float area(FaceIter f);
19
	float area(FaceIter f);
20
		
20
		
21
	/** Compute the centre of a face */
21
	/** Compute the centre of a face */
22
	CGLA::Vec3f centre(FaceIter f);
22
	CGLA::Vec3f centre(FaceIter f);
23
 
23
 
24
}
24
}
25
#endif
25
#endif
26
 
26