<<VRML 2.0 - An Introductory view by examples

Transform

[example1-html][example2-html][example3-html]  [run-ex1][run-ex2][run-ex3]

It defines a coordinate system (CS) for its children that is relative to the CS of its parents.


Parameters:


{                                                      
eventIn MFNode addChildren
eventIn MFNode removeChildren
exposedField MFNode children [ ]
exposedField SVec3f center 0 0 0
exposedField SFRotation rotation 0 0 1 0
exposedField SFVec3f scale 1 1 1
exposedField SFRotation scaleOrientation 0 0 1 0
exposedField SFVec3f translation 0 0 0
Field SFVec3f bboxCenter 0 0 0
Field SFVec3f bboxSize -1 -1 -1
}


Example of usage : translation to 3,0,0

Transform
{
translation 3 0 0
... some geometry
}