VRML.pm


NAME

VRML - VRML methods independent of specification (1.0 or 2.0)


SYNOPSIS

use VRML; $vrml = new VRML(2); $vrml->browser('CosmoPlayer 1.0','Netscape'); $vrml->at('-15 0 20'); $vrml->box('5 3 1','yellow'); $vrml->back; $vrml->print; $vrml->save; OR with the same result use VRML; VRML->new(2) ->browser('CosmoPlayer 1.0','Netscape') ->at('-15 0 20')->box('5 3 1','yellow')->back ->print->save;


DESCRIPTION

This module is usefull to generate VRML on WWW servers with CGI scripts or/and to create dynamic abstact worlds. It is the top modul of six other VRML moduls.

VRML::Base
contains basic functionality like 'print' and 'save'. (base class)

VRML::VRML1::Standard
is the pure implementation of VRML 1.0 nodes. All method names are intentically with the VRML nodes. The parameter are sorted by usability.

VRML::VRML2::Standard
is the pure implementation of VRML 2.0 nodes. All method names are intentically with the VRML nodes. The parameter are sorted by usability.

VRML::VRML1
combines one or more VRML 1.0 nodes to complex methods like geometry methods with appearance. This modul accepts angles in degree and color names. All method names are in lowercase and have the same names as in VRML::VRML2. So users can switch between VRML 1.0 and VRML 2.0 source generation. E.g. if $in{VRML} contains '1' or '2' you could write

new VRML($in{'VRML'})

VRML::VRML2
combines one or more VRML 2.0 nodes to complex methods like geometry methods with appearance. This modul accepts angles in degree and color names. All method names are in lowercase and have the same names as in VRML::VRML1. So users can switch between VRML 1.0 and VRML 2.0 source generation. E.g. if $in{VRML} contains '1' or '2' you could write

new VRML($in{'VRML'})

VRML::Color
contains the X11 color names and conversion functions.

.


SEE ALSO

VRML::VRML1

VRML::VRML1::Standard

VRML::VRML2

VRML::VRML2::Standard

VRML::Base

VRML::Color

http://www.gfz-potsdam.de/~palm/vrmlperl/ for a description of VRML-modules and how to obtain it.


BUGS

Some methods not tested very well at this time.


AUTHOR

Hartmut Palm <palm@gfz-potsdam.de>

Homepage http://www.gfz-potsdam.de/~palm/