changeset 10:67d25e36d427

Pentagon test script
author jsipek@huey.fsl.cs.sunysb.edu
date Thu, 24 Nov 2005 03:57:33 -0400
parents d325e84a13dd
children 55b7e6aba0ef
files pentagon.sh
diffstat 1 files changed, 21 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pentagon.sh	Thu Nov 24 03:57:33 2005 -0400
@@ -0,0 +1,21 @@
+./render&
+sleep 1
+
+PIPE="/tmp/3de.in"
+
+PT1="1 0 0 1 0 0.5"
+PT2="1 1 0 0.31 -0.95 0.5"
+PT3="0 1 0 -0.81 -0.59 0.5"
+PT4="0 1 1 -0.81 0.59 0.5"
+PT5="0 0 1 0.31 0.95 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\n$PT4\n$PT5" | ./rotate | ./transform` > $PIPE
+	echo "FLUSH" > $PIPE
+	OMEGA=`echo "$OMEGA+$INC" | bc`
+	sleep 0.01
+done