view run.sh @ 17:b1a93dc1601d

Makefile rules for normalize and cross product
author Josef "Jeff" Sipek <jeffpc@optonline.net>
date Fri, 02 Dec 2005 23:49:15 -0500
parents 640a1d1a730d
children dbe78e801c2c
line wrap: on
line source

./render&
sleep 1

PIPE="/tmp/3de.in"

PT1="1 0 0 -0.5 -0.5 0.5"
PT2="0 1 0 -0.5 0.5 0.5"
PT3="0 0 1 0.5 0.5 0.5"

INC="0.01745"
OMEGA="0"

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