Script
Here's the Unix shell script that created this image:
(If you are using another operating system,
and it does not have a sufficiently powerful scripting language,
you may have to do some of these operations manually.)
#!/bin/sh
# filename: oneline.sh
# author: Marvin Simkin
# date: 2003-11-14
# purpose: use HoloDraw to plot one line with a bounding box
# set the color for the bounding box to BLUE
echo "color=0 0 1" > blue.draw
# send the shape to drawbbox.pl to find the boundaries
# then send the color that you want the bounding box to be
cat oneline.draw blue.draw |
# make a box around whatever is in oneline.draw
drawbbox.pl > oneline.box
# combine the original drawing and the bounding box
cat oneline.draw oneline.box |
# create a VRML 2 "world" file
drawwrl.pl > oneline.wrl
# combine the original drawing and the bounding box
cat oneline.draw oneline.box |
# create a VRML 1 "inventor" file
drawiv.pl > oneline.iv
|
HoloDraw input file
Here's the HoloDraw input file that created this image:
(See the
HoloDraw syntax documentation
for details about what these keywords and values mean.)
# this is an example showing how to draw one red line
# set the color for subsequent objects to RED
color=1 0 0
# draw one line from 0 0 0 to 3 4 5
line:0 0 0,3 4 5
|
| Written by |
Marvin Simkin |
| Filename |
oneline.html |
| Last updated |
January 10, 2005 |
|
|
|