VRML_AXIS Procedure
Adds an axis to a VRML world.
Usage
Input Parameters
Keywords
Object Properties
TIP: If you need an axis pointing in some direction other than x, y, or z, then use the Transform keyword to rotate one of these three axes in the desired direction.
Material Properties
The following properties, when set, are applied to all objects of an axis (cylinders, cones, cubes, spheres, and text), as applicable.
AmbientColor
A 3-element array of RGB color with each element ranging between 0 and 255. If the value is scalar, then the color is interpreted as grayscale.
DiffuseColor
A 3-element array of RGB color with each element ranging between 0 and 255. If the value is scalar, then the color is interpreted as grayscale.
EmissiveColor
A 3-element array of RGB color with each element ranging between 0 and 255. If the value is scalar, then the color is interpreted as grayscale.
Shininess
Scalar shininess factor.
SpecularColor
A 3-element array of RGB color with each element ranging between 0 and 255. If the value is scalar, then the color is taken as grayscale.
Transparency
Scalar transparency factor, in the range of 0 to 255.
Font Family Settings
Font Attributes
Discussion
Example
VRML_OPEN, 'vrml_axis.wrl'
; Start the VRML file.
VRML_AXIS, Title = 'Default Axis'
; Create a default axis first.
VRML_AXIS, [1, 0, 0], 3, [-100, 200], /Y,$
Radius = .05, Title = 'Testing Y -Sans - Italic Axis', $
/Sans, /Italic
; Make a Y axis, starting at a different origin.
VRML_AXIS, [0, 0, 0], 3, /Z, $
Title = 'Testing Z Axis', $
DiffuseColor = [127, 255, 191], $
AmbientColor = [55, 70, 60], $
EmissiveColor = [200, 100, 50], $
Transparency = 120, $
Specular = [10, 10, 10], /Bold, /TypeWriter
; Make a Z axis, with a material list.
VRML_CLOSE
See Also
VRML_CONE, VRML_CYLINDER, VRML_OPEN, VRML_SURFACE, VRML_TEXT
For a discussion of VRML primitives and color parameter definitions, see The VRML Sourcebook, by Andrea L. Ames, et al., John Wiley & Sons, Inc., 1996, Chapter 3.


doc@boulder.vni.com
Copyright © 1999, Visual Numerics, Inc. All rights
reserved.