Blame demo/animate.dem

Packit 0986c0
#
Packit 0986c0
# $Id: animate.dem,v 1.6 2003/10/28 05:35:54 sfeam Exp $
Packit 0986c0
#
Packit 0986c0
# Demo animation, tumbling around 'glass.dat'.
Packit 0986c0
#
Packit 0986c0
# History:
Packit 0986c0
#   - 1. 1. 2006 Dan Sebald:  Defined variables for more generic rotate
Packit 0986c0
#   - ?. ?. ?    Hans-Bernhard Broeker:  Changed from rotating whale to
Packit 0986c0
#                rotating glass
Packit 0986c0
#   - ?. ?. ?    ?:  Initial tumbling whale demo
Packit 0986c0
Packit 0986c0
set parametric
Packit 0986c0
set hidden3d
Packit 0986c0
unset key
Packit 0986c0
set style data line
Packit 0986c0
xrot=60
Packit 0986c0
xrot_delta = 17
Packit 0986c0
zrot=0
Packit 0986c0
zrot_delta = 10
Packit 0986c0
xview(xrot)=(50.+30.*sin((xrot%180)/180.*pi))
Packit 0986c0
zview(zrot)=(60.+45.*sin(zrot/180.*pi))
Packit 0986c0
set view xview(xrot),zview(zrot)
Packit 0986c0
splot "glass.dat"
Packit 0986c0
Packit 0986c0
limit_iterations=40 # limits number of iterations if nonzero
Packit 0986c0
Packit 0986c0
if (!limit_iterations) print "The following animation will never stop on its own. You have"
Packit 0986c0
if (!limit_iterations) print "to stop it manually by interrupting gnuplot (e.g., press ^C)"
Packit 0986c0
print "On some screen terminal drivers for PC screens, you'll have"
Packit 0986c0
print "to hit a key to get to the next frame"
Packit 0986c0
Packit 0986c0
pause -1 "Press a key to start the rotation..."
Packit 0986c0
Packit 0986c0
iteration_count=0
Packit 0986c0
load "gnuplot.rot"
Packit 0986c0
reset