Subversion Repositories gelsvn

Rev

Rev 129 | Blame | Compare with Previous | Last modification | View Log | RSS feed

#ifndef __FACE_H__
#define __FACE_H__

#include "templates.h"

namespace HMesh
{


        /// Compute the number of edges of a face
        int no_edges(FaceIter v);

        /** Compute the normal of a face. If the face is not a triangle,
                        the normal is not defined, but computed using the first three
                        vertices of the face. */
        CGLA::Vec3f normal(FaceIter f);

        /** Compute the area of a face. */
        float area(FaceIter f);
                
        /** Compute the centre of a face */
        CGLA::Vec3f centre(FaceIter f);

}
#endif