| Cover | TOC | Chap | Prev Chap | Prev Fig | Next Fig | Next Chap |
|
Figure 5.8
A hut |
|
|
Click on the image to view the VRML scene. |
#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright (c) 1997
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
# A gray hut
Group {
children [
# Draw the hut walls
Shape {
appearance DEF White Appearance {
material Material { }
}
geometry Cylinder {
height 2.0
radius 2.0
}
},
# Draw the hut roof
Transform {
translation 0.0 2.0 0.0
children [
Shape {
appearance USE White
geometry Cone {
height 2.0
bottomRadius 2.5
}
}
]
}
]
}