以下、左上に平行移動した円すいと、
右下に平行移動した球の例です。
translation 以下の値の違いに着目してください。
また、円すい(Cone)と球(Sphere)が、children の後の
[ ] の中に書かれていることに着目してください。
#VRML V2.0 utf8
Transform {
translation -2.0 2.0 0.0
children [
Shape {
geometry Cone {
height 3.0
bottomRadius 2.0
}
}
]
}
Transform {
translation 3.0 -1.0 0.0
children [
Shape {
geometry Sphere {
radius 2.0
}
}
]
}
|