| Cover | TOC | Chap | Prev Chap | Prev Fig | Next Fig | Next Chap |
|
Figure 15.10
An extruded room using a floor plan as the cross section. |
|
|
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
Group {
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1.0 0.9 0.7
}
}
geometry Extrusion {
convex FALSE
crossSection [
# Room outline
-0.5 1.0, -0.5 0.8,
-1.8 0.8, -1.8 -0.8,
1.8 -0.8, 1.8 0.8,
0.5 0.8, 0.5 1.0,
2.0 1.0, 2.0 -1.0,
-2.0 -1.0, -2.0 1.0,
-0.5 1.0
]
spine [
# Straight-line
0.0 0.0 0.0,
0.0 2.0 0.0
]
}
}
]
}