Package Vrml2Sourcebook.Chapter07ScalingShapes
Scale transformations grow or shrink a local coordinate system by a scaling factor in the X, Y, and Z directions.
Sometimes scale values are used to adjust units when the data in child nodes is not based on meters. Transform operations are bottom-up: children shapes are first scaled, rotated, then translated. Order is fixed, independent of the field order that happens to occur in the Transform node.
These X3D scenes are adapted directly from the original VRML 2.0 Sourcebook chapter examples. Also available: Introduction to VRML97 SIGGRAPH98 course notes.
This X3D VRML2 Sourcebook Chapter 07 Scaling Shapes examples archive is online.
The X3D Java Scene Access Interface (x3djsail) package provides concrete classes for each X3D node and statement.
Online: X3D Java Scene Access Interface Library (X3DJSAIL) and X3DJSAIL Javadoc
- See Also:
-
ClassDescriptionScaling up by 2.0 along the X-axis direction and building a sphere, with coordinate axes superimposed to show X3D/VRML directions.Scaling down by 0.5 along the X-axis direction and building a sphere, with coordinate axes superimposed to show X3D/VRML directions.Scaling up by 2.0 along the Y-axis direction and building a sphere, with coordinate axes superimposed to show X3D/VRML directions.Scaling down by 0.5 along the Z-axis direction and building a sphere, with coordinate axes superimposed to show X3D/VRML directions.Scaling up by 2.0 in the X direction, scaling down by 0.5 in the Y direction, scaling up by 4.0 in the Z direction, and building a sphere, with coordinate axes superimposed to show X3D/VRML directions.A simple spaceship built with a cylinder and a sphere, each scaled within its own coordinate system, with coordinate axes superimposed to show X3D/VRML directions.A simple spaceship built with shapes in scaled coordinate systems, with coordinate axes superimposed to show X3D/VRML directions.An archway with smaller archways on each side created in translated, scaled coordinate systems.A tree at its original size.A tree scaled up about a center point set at the base of the tree trunk.A tree scaled along a diagonal axis using scale orientation.