Cover TOC Chap Prev Chap Prev Fig Next Fig Next Chap

Chapter 5: Positioning Shapes

../ch05/05fig04b.gif
Figure 5.4b

Translating -2.0 units along the X axis and building a cylinder

05fig04b.wrl
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
Transform {
    translation -2.0 0.0 0.0
    children [
        Shape {
            appearance Appearance {
                material Material { }
            }
            geometry Cylinder { }
        }
    ]
}