view pentagon.sh @ 18:22df18cf00c3

Move pentagon to xy-plane - updated to use new render engine
author Josef "Jeff" Sipek <jeffpc@optonline.net>
date Sat, 03 Dec 2005 00:32:38 -0500
parents 67d25e36d427
children 9a34b00c0659
line wrap: on
line source

./render&
sleep 1

PIPE="/tmp/3de.in"

PT1="1 0 0 1 0 0"
PT2="1 1 0 0.31 -0.95 0"
PT3="0 1 0 -0.81 -0.59 0"
PT4="0 1 1 -0.81 0.59 0"
PT5="0 0 1 0.31 0.95 0"

INC="0.01745"
OMEGA="0"

echo "TRANSCAM 0 0 -1.0" > $PIPE
for x in `seq 3600`; do
	echo "CLEAR" > $PIPE
	echo "POLY " `echo -e "$OMEGA 0 0\n$PT1\n$PT2\n$PT3\n$PT4\n$PT5" | ./rotate | ./transform` > $PIPE
	echo "FLUSH" > $PIPE
	OMEGA=`echo "$OMEGA+$INC" | bc`
	sleep 0.01
done