$darkmode
VCG Library
Public Types | Public Member Functions | Static 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>

Inheritance diagram for vcg::face::VertexRef< T >:

Public Types

typedef T::VertexType::CoordType CoordType
 
typedef T::VertexType::ScalarType ScalarType
 

Public Member Functions

T::VertexType *& V (const int j)
 
const T::VertexType * V (const int j) const
 The pointer to the i-th vertex.
 
const T::VertexType * cV (const int j) const
 
CoordType & P (const int j)
 
const CoordType & P (const int j) const
 Shortcut: the position of the i-th vertex (equivalent to V(i)->P() )
 
const CoordType & cP (const int j) const
 
T::VertexType *& V0 (const int j)
 
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.
 
const T::VertexType * V0 (const int j) const
 Return the pointer to the ((j+2)%3)-th vertex of the face.
 
const T::VertexType * V1 (const int j) const
 Return the pointer to the j-th vertex of the face.
 
const T::VertexType * V2 (const int j) const
 Return the pointer to the ((j+1)%3)-th vertex of the face.
 
const T::VertexType * cV0 (const int j) const
 Return the pointer to the ((j+2)%3)-th vertex of the face.
 
const T::VertexType * cV1 (const int j) const
 
const T::VertexType * cV2 (const int j) const
 
CoordType & P0 (const int j)
 
CoordType & P1 (const int j)
 
CoordType & P2 (const int j)
 
const CoordType & P0 (const int j) const
 
const CoordType & P1 (const int j) const
 
const CoordType & P2 (const int j) const
 
const CoordType & cP0 (const int j) const
 
const CoordType & cP1 (const int j) const
 
const CoordType & cP2 (const int j) const
 
template<class RightValueType >
void ImportData (const RightValueType &rightF)
 
void Alloc (const int &ns)
 
void Dealloc ()
 

Static Public Member Functions

static bool HasVertexRef ()
 
static bool HasFVAdjacency ()
 
static void Name (std::vector< std::string > &name)
 

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


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