VRML_LINE Procedure
Creates a VRML polyline object.
Usage
Input Parameters
Keywords
Object Properties
Material Properties
The following properties, when set, are applied to the line.
AmbientColor
A (3, n) array of RGB color, in the range of 0 and 255. If AmbientColor is an n-element array, then the color is interpreted as grayscale.
DiffuseColor
A (3, n) array of RGB color, in the range of 0 and 255. If DiffuseColor is an n-element array, then the color is interpreted as grayscale.
EmissiveColor
A (3, n) array of RGB color, in the range of 0 and 255. If EmissiveColor is an n-element array, then the color is interpreted as grayscale.
MaterialIndices
An array of indices into the material property arrays in the range of 0 to n - 1, relating each vertex of the polyline to the set of material properties (AmbientColor, DiffuseColor, EmissiveColor, SpecularColor, Transparency, Shininess). There should be NPOINT elements in this array (one per vertex in the polyline). (Default: n = npoint, where the set of material properties relates one-to-one to its corresponding vertices)
Shininess
An n-element array of shininess, in the range of 0 to 255.
SpecularColor
A (3, n) array of RGB color, in the range of 0 to 255. If SpecularColor is an n-element array, then the color is interpreted as grayscale.
Transparency
An n-element array of transparency, in the range of 0 to 255.
Discussion
Example
VRML_OPEN, 'vrml_line.wrl'
x = FINDGEN(10)/9
y = RANDOMU(s, 10)
VRML_LINE, x, y
VRML_CLOSE
See Also


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