以下、x軸に沿って拡大した球を左側に、
y軸に沿って拡大した球を右側に表示した例です。
scale 以下の値の違いに着目してください。
また、球(Sphere)が、children の後の
[ ] の中に書かれていることに着目してください。
#VRML V2.0 utf8
Transform {
scale 1.5 1.0 1.0
translation -2.0 0.0 0.0
children [
Shape {
geometry Sphere {
radius 1.5
}
}
]
}
Transform {
scale 1.0 1.5 1.0
translation 2.0 0.0 0.0
children [
Shape {
geometry Sphere {
radius 1.5
}
}
]
}
|