Summary
###########################################################################
File: vrml.icn
Subject: Procedures to support creation of VRML files
Author: Ralph E. Griswold
Date: May 2, 2001
###########################################################################
This file is in the public domain.
###########################################################################
This file contains procedures for producing VRML files.
point_field(L) create VRML point field from point list L
u_crd_idx(i) create VRML coordinate index for 0 through i - 1
render(x) render node x
vrml1(x) produces VRML 1.0 file for node x
vrml2(x) produces VRML 2.0 file for node x
vrml_color(s) convert Icon color specification to vrml form
Notes:
Not all node types have been tested.
Where field values are complex, as in vectors, these must be built
separately as strings to go in the appropriate fields.
There is no error checking. Fields must be given in the
order they appear in the node record declarations and field values
must be of the correct type and form.
The introduction of record types other than for nodes will cause
bogus output. A structural loop will produce output until the
evaluation stack overflows.
###########################################################################
Links: ptutils, records
###########################################################################
Requires: Version 9 graphics for color conversion
###########################################################################
See also: vrml1lib.icn and vrml2.icn
###########################################################################
Procedures:
point_field, render, u_crd_idx, vrml1, vrml2, vrml_color
Links:
ptutils.icn
This file is part of the (main) package.
Source code.
point_field(pts)
: create VRML point field
render(x, f)
render VRML object
u_crd_idx(i)
: create VRML coordinate index
vrml1(x, f)
: write VRML 1.0 file
vrml2(x, f)
: produce VRML 2.0 file
vrml_color(s)
This page produced by UniDoc on 2021/04/15 @ 23:59:54.