ReadVRML

Synopsis

Reads a VRML 1.0 files to generate an unstructured mesh.

Parameters

Name Type Description UI Control

filename string Name of VRML 1.0 file to read. File Dialog
Subdivision integer Number of faces for round objects. Slider

Output Ports

Name Type Description

out 3D Field Geometries and data read from the VRML file.
obj DefaultObject Directly Renderable Object.

Description

The ReadVRML user macro reads a VRML 1.0 file with a given filename. The file is parsed by the vrml2geom parser that generates a list of geometry objects. These objects are converted to the unstructured AVS Field which is passed back to AVS/Express. The DataObject which is part of the user macro converts this AVS/Field into a Directly renderable object which can be rendered by a standard Uviewer.

The Subdivision parameter which can be passed to the ReadVRML module defienes the number of faces round objects (cylinders, Spheres, cones etc.) are defined by. If this parameter is unset a value of 20 is used.

Parameters

filename

String parameter that contains the name of the VRML 1.0 file that should be read.

Subdivision

This integer parameter defienes the number of faces round objects (cylinders, Spheres, cones etc.) are defined by. If this parameter is unset a value of 20 is used.

Outputs

out

AVS/Express Field output that contains the geometries and data read from the VRML 1.0 file.

obj

The directly renderable output of the ReadVRML macro. This output contains the geometries and data read from the VRML 1.0 file in a form that can be rendered by the standard data viewers.

Utility Macros

The ReadVRMLFunc functional macro uses the ReadVRMLCore low-level module. The ReadVRML user macro uses this functional macro and the ReadVRMLUI user interface macro.

Example

An example application ReadVRMLEg is provided whith the project.

Files

iac_proj/rd_vrml1/rdvrmods.v Creates the ReadVRMLMods library containing the parameter block ReadVRMLParams and the low-level module ReadVRMLCore.

iac_proj/rd_vrml1/rdvrmacs.v Creates the ReadVRMLMacs library containing the UI macro ReadVRMLUI the functional macro ReadVRMLFunc and the user macro ReadVRML.

iac_proj/rd_vrml1/rdvrapps.v Creates the ReadVRMLApps library containing the example applications ReadVRMLEg.

Other Notes

The low-level ReadVRMLCore module needs the libVRML2GEO.a library. The source code to this library is provided in the package. In order to compile correctly the avsenv file has to contain the absolute path the the AVS/Express working directory (i.e. /home/user/iac/ $XP_ROOT). The low-level ReadVRMLMods library containing the low-level ReadVRMLCore module does not specify a process. By default the express process will be used.

Authors

Yoshikawa Hiroyuki
KGT (Kubota Graphics Technologies) Inc.
Tobias Schiebeck,
Manchester Visualization Centre

Contact

International AVS Centre
Manchester Visualization Centre
Manchester Computing
University of Manchester
Oxford Road
Manchester
United Kingdom
M13 9PL