Package Vrml2Sourcebook.Chapter05PositioningShapes
This chapter describes how to position shapes within an X-Y-Z world coordinate system by adding a parent Transform node.
Rotations about each axis are counter-clockwise using the right-hand rule. Nested Transform nodes can translate, rotate and scale shapes relative to each other in 3D space.
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 05 Positioning 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:
-
ClassDescriptionTranslating +2 units along the X axis, 1 unit along Y axis, and building a cylinder.Translating +2 units along the X axis, 1 unit along Y axis, and building a cylinder, with coordinate axes superimposed to show X3D/VRML directions.Translating -2 units along the X axis, 1 unit along Y axis, and building a cylinder.Translating -2 units along the X axis, 1 unit along Y axis, and building a cylinder, with coordinate axes superimposed to show X3D/VRML directions.Building an archway using multiple, translated coordinate systems.Building an archway using multiple, translated coordinate systems, with coordinate axes superimposed to show X3D/VRML directions.Nesting coordinate systems.Nesting coordinate systems, coordinate axes superimposed to show X3D/VRML directions.