Subversion Repositories gelsvn

Rev

Rev 129 | Blame | Last modification | View Log | RSS feed

#ifndef __HMESH_VERTEX_H__
#define __HMESH_VERTEX_H__

#include "templates.h"


namespace HMesh
{

        /// Compute valency, i.e. number of incident edges.
        int valency(VertexIter v);

        /** Compute the vertex normal. This function computes the angle
                        weighted sum of incident face normals. */
        const CGLA::Vec3f normal(VertexIter v);

        /** Returns true if the two argument vertices are in each other's 
                        one-rings. */
        bool is_connected(VertexIter v1, VertexIter v2);

        /** Returns true if the vertex is a boundary vertex. */
        bool is_boundary(VertexIter v);

        /** Check and enforce boundary consistency. */
        void check_boundary_consistency(VertexIter v);



}
#endif