VRML 立体図形(直方体、球、円錐、円柱)。
#VRML V2.0 utf8 Transform{ children Shape{ appearance Appearance{ material Material{ diffuseColor 1 0 0 } } geometry Box{ size 1 1 1 } } } |
直方体 |
Box{ size 1 1 1 } |
size x y z 横縦奥行きを指定。 |
球 |
Sphere{ radius 1 } |
radius r 球の半径を指定。 |
円錐 |
Cone{ height 1 bottomRadius 1 } |
height h 円錐の高さを指定。 bottomRadius r 底辺の円の半径を指定。 |
円柱 |
Cylinder{ height 1 radius 1 } |
height h 円柱の高さを指定。 radius r 底辺の円の半径を指定。 |