File: SoNormal.ivm

package info (click to toggle)
inventor 2.1.5-10-14
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 32,892 kB
  • ctags: 21,729
  • sloc: ansic: 33,867; lisp: 7,361; cpp: 3,874; yacc: 369; sh: 359; perl: 234; awk: 141; makefile: 76; csh: 35; sed: 11
file content (33 lines) | stat: -rw-r--r-- 1,082 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
NAME SoNormal SoNorm "" { node that defines surface normals for shapes }

INCLUDE nodes/SoNormal.h

DESC {
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.
\p
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.
}

FIELD vector { Surface normal vectors. }

METHOD "" SoNormal() { Creates a surface normal node with default settings. }

METHOD "" static SoType getClassTypeId() {
Returns type identifier for this class.
}

ACTION SoGLRenderAction, SoCallbackAction, SoRayPickAction {
Sets the current normals in the traversal state.
}

ALSO {
SoCoordinate3, SoLightModel, SoNormalBinding, SoVertexShape
}