Cover TOC Chap Prev Chap Prev Fig Next Fig Next Chap

Chapter 7: Scaling Shapes

../ch07/07fig04b.gif
Figure 7.4b

Scaling up by 2.0 in the X-axis direction and building a sphere.

07fig04b.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 {
    scale 2.0 1.0 1.0
    children [
        Shape {
            appearance Appearance {
                material Material { }
            }
            geometry Sphere { }
        }
    ]
}