| Sommaire | Page precedente | Page suivante | page 5 |
Les formes peuvent etre regroupees pour constituer d'autres formes plus
complexes.
Le VRML possede plusieurs groupes:
Group {...}
Switch {...}
Transform {...}
Billboard {...}
Group {
children [...]
}
Switch {
whichChoice 0
choice [
Shape {...}
Shape {...}
Transform {...}
]
}
Transform {
translation ...
rotation ...
scale ...
children [...]
}
billeye.wrl
Code source
Billboard {
axisOfRotation 0 1 0
children [...]
}
axisOfRotation x y z designe l'axe de rotation autour duquel l'objet
va tourner.L'angle est calcule automatiquement.
Transform {
children [
DEF tube Shape {
appearance ...
geometry ...
}
]
}
Transform {
translation 1 0 0
children [ USE tube ]
}