Node that defines surface normals for shapes. More...
#include <Inventor/nodes/SoNormal.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoNormal () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoMFVec3f | vector |
Node that defines surface normals for shapes.
This node defines a set of 3D surface normal vectors to be used by vertex-based shape nodes that follow it in the scene graph. This node does not produce a visible result during rendering; it simply replaces the current normals in the rendering state for subsequent nodes to use. This node contains one multiple-valued field that contains the normal vectors.
Surface normals are needed to compute lighting when the Phong lighting model is used. Most vertex-based shapes that use normals can compute default normals if none are specified, depending on the current normal binding.
vector | [ ] |
SoCoordinate3, SoLightModel, SoNormalBinding, SoVertexShape, SoVertexProperty
SoNormal::SoNormal | ( | ) |
Creates a surface normal node with default settings.
static SoType SoNormal::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoNode.
virtual SoType SoNormal::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoNode.
Surface normal vectors.