SoNormalBinding Class Reference
[Properties]

Node that specifies how multiple surface normals are bound to shapes. More...

#include <Inventor/nodes/SoNormalBinding.h>

Inheritance diagram for SoNormalBinding:
SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

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

Detailed Description

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.

FILE FORMAT/DEFAULT

ACTION BEHAVIOR

SEE ALSO

SoMaterialBinding, SoNormal, SoTextureCoordinateBinding, SoVertexShape, SoVertexProperty


Member Enumeration Documentation

Binding.

Enumerator:
OVERALL 

Whole object has same normal.

PER_PART 

One normal for each part of object.

PER_PART_INDEXED 

One normal for each part, indexed.

PER_FACE 

One normal for each face of object.

PER_FACE_INDEXED 

One normal for each face, indexed.

PER_VERTEX 

One normal for each vertex of object.

PER_VERTEX_INDEXED 

One normal for each vertex, indexed.

DEFAULT 
NONE 

Constructor & Destructor Documentation

SoNormalBinding::SoNormalBinding (  ) 

Creates a normal binding node with default settings.


Member Function Documentation

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.


Member Data Documentation

Specifies how to bind normals to shapes.

Use enum Binding. Default is PER_VERTEX_INDEXED.


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

Open Inventor Toolkit reference manual, generated on 18 Apr 2021
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/