If a method does the same like its VRML pedant then it has the same name but in lowercase (e.g. box). The open part of a group method ends with a _begin (e.g. anchor_begin). The closing part ends with an _end (e.g. anchor_end). For a detailed description how the generated node works, take a look at the VRML 2.0 specification on VAG.
Following methods are currently implemented. (Values in '...' must be strings!)
Before you use an geometry or transform method please call this method. It's necessary to calculate something at the end.
After end
there should no geometry or transformation. This method completes
the calculations of viewpoints etc.
is the short version of the method transform_begin
. It has the same
parameters as transform_begin
.
is the short version of the method transform_end
.
Where type can be:
)
This is a parameter hash. Only use the parts you need.
is the short version of background
. It specifies only colors.
is the short version of background
. It needs only one image. The
given Url will assigned to all parts of the background cube.
starts the hidden calculation of viewpoint center and distance for the
method viewpoint_auto_set()
. It collects also the viepoints to place
they in the first part of the VRML source.
places six viewpoints around the center.
sets all parameters of viewpoint_set
automatically.
does the same as method box
, but needs only one parameter.
draws a line (cylinder) between two points with a given radius. If radius is '0' only a hairline will be printed. The last parameter specifies the devolution along the axes. An empty stands for direct connection.
does the same like method text
, but the text better readable.
The appearance method specifies the visual properties of geometry by defining the material and texture. If more than one type is needed separate the types by semicolon. The types can choosen from the following list. Note: one character mnemonic are colors two characters mnemonic are values in range of [0..1] more characters are strings like file names or labels
The color values can be strings (X11 color names) or RGB-triples. It is possible to reduce the intensity of colors (names) by appending a two digit value (percent). This value must be separated by an underscore (_) or a percent symbol (%). Note: Do not use a percent symbol in URL's. It would be decoded in an ascii character.
Sample (valid color values): '1 1 0' # VRML standard 'FFFF00' or 'ffff00', '255 255 0', 'yellow'
or reduced to 50% '.5 .5 .5' # VRML standard '808080', '128 128 0', 'yellow%50' or 'yellow_50'
For a list of X11 color names take a look at VRML::Color
Where type can be:
VRML::VRML2::Standard
VRML::Base
http://www.gfz-potsdam.de/~palm/vrmlperl/ for a description of VRML-modules and how to obtain it.
Homepage http://www.gfz-potsdam.de/~palm/