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

Inheritance diagram for vcg::vertex::Normal< A, T >:

Public Types

typedef A NormalType
 

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.
 
const NormalType & cN () const
 Return a const reference to the normal of the vertex.
 
template<class RightValueType >
void ImportData (const RightValueType &rVert)
 

Static Public Member Functions

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

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.

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