The Transform{} is the most frequently used node in VRML2.0. Eventually, all geometries will be children of a transformation. Take a look at the default Transform{} node:
Transform{
center 0 0 0
translation 0 0 0
rotation 0 0 1 0
scale 1 1 1
scaleOrientation 0 0 1 0
bboxCenter 0 0 0
bboxSize -1 -1 -1
children [ ]
}
The most important fields are translation, rotaton and scale which we will cover later.
How do I use a Transform node?
#VRML V2.0 utf8
#a transformation
Transform{
children[
Shape{
geometry Box{}
}
]
}
This should look like the first Box{} exmaple.
Altering the values for the other fields will effect some change in the children. The exact nature of these changes is discussed next.