VCG Library
Public Member Functions | List of all members
vcg::face::VertexRef< T > Class Template Reference

The references to the vertexes of a triangular face. More...

#include <component.h>

Inherits T.

Public Member Functions

T::VertexType * cV (const int j) const
 The pointer to the i-th vertex.
 
CoordType cP (const int j) const
 Shortcut: the position of the i-th vertex (equivalent to V(i)->P() )
 
T::VertexType *& V1 (const int j)
 Return the pointer to the j-th vertex of the face.
 
T::VertexType *& V2 (const int j)
 Return the pointer to the ((j+1)%3)-th vertex of the face.
 
T::VertexType * cV0 (const int j) const
 Return the pointer to the ((j+2)%3)-th vertex of the face.
 

Detailed Description

template<class T>
class vcg::face::VertexRef< T >

The references to the vertexes of a triangular face.

Stored as three pointers to the VertexType

Definition at line 164 of file face/component.h.

Member Function Documentation

template<class T >
CoordType vcg::face::VertexRef< T >::cP ( const int  j) const
inline

Shortcut: the position of the i-th vertex (equivalent to V(i)->P() )

Definition at line 179 of file face/component.h.

template<class T >
T::VertexType* vcg::face::VertexRef< T >::cV ( const int  j) const
inline

The pointer to the i-th vertex.

Definition at line 176 of file face/component.h.

template<class T >
T::VertexType* vcg::face::VertexRef< T >::cV0 ( const int  j) const
inline

Return the pointer to the ((j+2)%3)-th vertex of the face.

Definition at line 184 of file face/component.h.

template<class T >
T::VertexType* & vcg::face::VertexRef< T >::V1 ( const int  j)
inline

Return the pointer to the j-th vertex of the face.

Definition at line 182 of file face/component.h.

template<class T >
T::VertexType* & vcg::face::VertexRef< T >::V2 ( const int  j)
inline

Return the pointer to the ((j+1)%3)-th vertex of the face.

Definition at line 183 of file face/component.h.


The documentation for this class was generated from the following file: