Subversion Repositories gelsvn

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
39 bj 1
#ifndef __FACE_H__
2
#define __FACE_H__
3
 
4
#include "templates.h"
5
 
6
namespace HMesh
7
{
8
 
9
 
10
	/// Compute the number of edges of a face
11
	int no_edges(FaceIter v);
12
 
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
15
			vertices of the face. */
62 jab 16
	CGLA::Vec3f normal(FaceIter f);
39 bj 17
 
18
	/** Compute the area of a face. */
62 jab 19
	float area(FaceIter f);
39 bj 20
 
21
	/** Compute the centre of a face */
62 jab 22
	CGLA::Vec3f centre(FaceIter f);
39 bj 23
 
24
}
25
#endif