HoloDraw Program Documentation: xyzadraw

Documentation | Download | Examples | Frequently Asked Questions (FAQ)

Program Summary

Filename xyzadraw.pl
Author Marvin Simkin
Program Created 2003-01-17
Last Updated Jan 28 13:06
Purpose make VRML line drawings from X-Y-Z-Attribute data
syntax xyzadraw.pl [-Ccolors.cpt] < data.xyza | drawiv.pl
-C optional flag indicating presence of CPT file; no space after
colors.cpt optional Color Palette Table in GMT format
data.xyza see input format below
drawiv.pl program to create VRML 1 from this program's output
(You can use drawwrl.pl instead to generate VRML 2.)

Discussion

This will read data in ASCII format and output line instructions
in HoloDraw format.
To output a solid surface instead see surfdraw.pl

An input line beginning with '>'
signifies the end of a line and start of another line.
Otherwise, points are connected.

The 4th column is any "attribute" about the line
that can be represented by changing colors.
As currently implemented, the "attribute" of the first point
actually sets the color of the first line
(which ends at the second point).
So if the second point has a different attribute,
the new color will apply to the line AFTER the second point.
This implies that the attribute of the final point is
meaningless, because no line will be drawn away from that point.

Currently if you provide no CPT file the attribute is hardcoded to vary the
color from red to yellow as the attribute value varies from 0 to 1.
Other attribute values are unsupported.

This can also accept data with no attribute column.
It will gripe but pretend you put "0.5" in every row
where the attribute is missing.


Input format examples:
>
    135.490    35.6700  -100.0000 0.95
    135.930    35.5741   -90.0000 0.95
    136.399    35.4720   -77.9173 0.95
>
    135.490    35.6700  -100.0000 0.3
    135.545    35.4254   -90.0000 0.3


Output data format:
color=1 A 0;line:X1 Y1 Z1,X2 Y2 Z2,X3 Y3 Z3,X4 Y4 Z4,X5 Y5 Z5



Written by Marvin Simkin
Filename xyzadraw.html
Last updated April 5, 2005
Arizona State University Valid HTML 4.01!
Freedom to Choose ANY Browser