X3DTK::MESH::TemplateNormalsFlipper< MData, VData, EData, FData, RW > Class Template Reference
[MESH]

Class declared in <X3DTK/MESH/normalsflipper.h> providing a processor that makes the orientation of the faces of a MESH scene graph coherent. More...

Inheritance diagram for X3DTK::MESH::TemplateNormalsFlipper< MData, VData, EData, FData, RW >:

X3DTK::X3DOnePassProcessor X3DTK::X3DProcessor List of all members.

Public Member Functions


Detailed Description

template<class MData, class VData, class EData, class FData, bool RW>
class X3DTK::MESH::TemplateNormalsFlipper< MData, VData, EData, FData, RW >

Class declared in <X3DTK/MESH/normalsflipper.h> providing a processor that makes the orientation of the faces of a MESH scene graph coherent.

For each connected component, the algorithm counts the number of relative counterclockwise faces against the number of not counterclockwise faces. The minority is inversed so that all the faces are coherent.


Constructor & Destructor Documentation

template<class MData, class VData, class EData, class FData, bool RW>
X3DTK::MESH::TemplateNormalsFlipper< MData, VData, EData, FData, RW >::TemplateNormalsFlipper  ) 
 

Constructor.

template<class MData, class VData, class EData, class FData, bool RW>
virtual X3DTK::MESH::TemplateNormalsFlipper< MData, VData, EData, FData, RW >::~TemplateNormalsFlipper  )  [virtual]
 

Destructor.


Member Function Documentation

template<class MData, class VData, class EData, class FData, bool RW>
void X3DTK::MESH::TemplateNormalsFlipper< MData, VData, EData, FData, RW >::flip X3DNode N  ) 
 

Flips the normals.

template<class MData, class VData, class EData, class FData, bool RW>
void X3DTK::MESH::TemplateNormalsFlipper< MData, VData, EData, FData, RW >::flip Scene S  ) 
 

Flips the normals of the scene.

template<class MData, class VData, class EData, class FData, bool RW>
void X3DTK::MESH::TemplateNormalsFlipper< MData, VData, EData, FData, RW >::setSelectedNodes const MFNode selectedNodes  ) 
 

Sets the selected nodes to update. If empty, then all the graph is updated.


Generated on Fri Aug 27 13:16:33 2004 for X3DToolKit by doxygen 1.3.6