Transformation nodes are a kind of node that changes the geometric
properties of objects in a scene, like location and size. The
Transform
node class can actually perform all possible
geometric transformations, but there are also some specialized subclasses
with more limited effects. When writing code by hand the specialized
versions will probably be easier to use.
Transform
node can be used to create any
geometric transformation.
Transform { translation 0 0 0 rotation 0 0 1 0 scaleFactor 1 1 1 scaleOrientation 0 0 1 0 center 0 0 0 }
Translation
node displaces an object by
the distances specified with respect to the X, Y, and Z axes. The
orientation of the object is not changed.
Translation { translation 0 0 0 }
Rotation
node rotates an object about an
arbitrary (ie: one you specify) axis through the origin. This will change
the object's orientation and possibly its location depending on where the
centre of the object is currently.
Rotation { rotation 0 0 1 0 }
RotationXYZ
node rotates an object about
one of the three major axes (X
, Y
, or
Z
). This will change the object's orientation and possibly
its location depending on where the centre of the object is currently.
RotationXYZ { axis X angle 0 }
Scale
node stretches an object by multiplying
its size in the X, Y, and Z directions.
Scale { scaleFactor 1 1 1 }
More information on Open Inventor transformations is available in: