NormalBinding

Purpose:

The NormalBinding node is another of the eleven geometry and appearance property Nodes. This node determines how the current normals are bound to shapes that follow this node in the scene graph. Keep in mind that each shape node may interpret bindings differently.

Syntax

BINDINGS

	DEFAULT			Use default binding
	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

 

FILE FORMAT/DEFAULTS
NormalBinding {
	value	DEFAULT	# SFEnum
}
Explanation

As we suggested earlier, bindings for faces and vertices are only meaningful for shapes made from faces and vertices. In the same way, indexed bindings are only used by shapes that allow indexing. If you have bindings that require multiple normals, make sure that you have defined at least as many normals as are necessary. If you don't, you will have errors in your world.

Example Use

The following code fragment is from one of the many cube.wrl files available.

NormalBinding {

	value	PER_FACE
}
See Also

SFEnum