VCG Library
Public Member Functions | List of all members
vcg::vertex::Normal< A, T > Class Template Reference

Generic Component: Normal of the vertex More...

#include <component.h>

Inherits T.

Public Member Functions

const NormalType & N () const
 Return a const reference to the normal of the vertex.
 
NormalType & N ()
 Return a reference to the normal of the vertex.
 
NormalType cN () const
 Return a const reference to the normal of the vertex.
 

Detailed Description

template<class A, class T>
class vcg::vertex::Normal< A, T >

Generic Component: Normal of the vertex

Templated on the Point3 class used to store the normal. In practice you use one of the two specialized class Normal3f and Normal3d.

You can access to the normal of a vertex by mean of the N(),cN() member functions.

Note
Many algorithms assume that, for sake of precision coherence, the type of the normal is the same with respect to the type coord component.

Definition at line 213 of file vertex/component.h.

Member Function Documentation

template<class A, class T>
NormalType vcg::vertex::Normal< A, T >::cN ( ) const
inline

Return a const reference to the normal of the vertex.

Definition at line 221 of file vertex/component.h.

template<class A, class T>
const NormalType& vcg::vertex::Normal< A, T >::N ( ) const
inline

Return a const reference to the normal of the vertex.

Definition at line 217 of file vertex/component.h.

template<class A, class T>
NormalType& vcg::vertex::Normal< A, T >::N ( )
inline

Return a reference to the normal of the vertex.

Definition at line 219 of file vertex/component.h.


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