|
|
This rather disturbing image was rendered with POV, but the cubic_spline
that controls the sphere_sweep was designed in Python.
#Python 2.33
from math import *
clock,count=0.0, 0
deltay= .7
amp, deltaamp=5, .98
diameter=1.5
while clock<2:
clock=clock+.05
count=count+1
angley=sin(count/2)
x=int(cos(angley)*count*1000)/1000.0
z=int(sin(angley)*count*1000)/1000.0
angley=angley+deltay
deltay=deltay*.98
y=int(sin(amp)*count*1000)/1000.0
amp=amp*deltaamp
deltaamp=deltaamp*.96
diameter=diameter*.95
print "<",x,",",y,",",z,">,",diameter
print
print count
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.590 / Virus Database: 373 - Release Date: 2/16/2004
Post a reply to this message
Attachments:
Download 'sweepie.jpg' (63 KB)
Preview of image 'sweepie.jpg'
|
|