Node that specifies how multiple surface normals are bound to shapes. More...
#include <Inventor/nodes/SoNormalBinding.h>
Public Types | |
enum | Binding { OVERALL = SbVertexAttributeBinding::OVERALL, PER_PART = SbVertexAttributeBinding::PER_PART, PER_PART_INDEXED = SbVertexAttributeBinding::PER_PART_INDEXED, PER_FACE = SbVertexAttributeBinding::PER_FACE, PER_FACE_INDEXED = SbVertexAttributeBinding::PER_FACE_INDEXED, PER_VERTEX = SbVertexAttributeBinding::PER_VERTEX, PER_VERTEX_INDEXED = SbVertexAttributeBinding::PER_VERTEX_INDEXED, DEFAULT = SoNormalBindingElement::DEFAULT, NONE = SoNormalBindingElement::NONE } |
Public Member Functions | |
virtual SoType | getTypeId () const |
SoNormalBinding () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFEnum | value |
Node that specifies how multiple surface normals are bound to shapes.
This node specifies how the current normals are bound to shapes that follow in the scene graph. Each shape node may interpret bindings differently.
The bindings for faces and vertices are meaningful only for shapes that are made from faces and vertices. Similarly, the indexed bindings are only used by the shapes that allow indexing. For bindings that require multiple normals, be sure to have at least as many normals defined as are necessary; otherwise, errors will occur.
value | PER_VERTEX_INDEXED |
SoMaterialBinding, SoNormal, SoTextureCoordinateBinding, SoVertexShape, SoVertexProperty
Binding.
SoNormalBinding::SoNormalBinding | ( | ) |
Creates a normal binding node with default settings.
static SoType SoNormalBinding::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoNode.
virtual SoType SoNormalBinding::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoNode.
Specifies how to bind normals to shapes.
Use enum Binding. Default is PER_VERTEX_INDEXED.