POV-Ray : Newsgroups : povray.binaries.tutorials : Spiral objects? : Re: Spiral objects? Server Time
19 Apr 2024 11:04:17 EDT (-0400)
  Re: Spiral objects?  
From: Spider
Date: 10 Feb 1999 17:12:51
Message: <36C20328.2402E51A@bahnhof.se>
There was a thread called 3D match some time ago in .general, where a
spiral was created..

An easier way to do it is like this: (untested)

#declare rounds = 15;
#declare radii = 10;
#declare O = sphere { <0,0,0>,0.5 pigment { Yellow }}
#declare MaxY = 50;
#declare Num = 1500;
#declare iNum = 1/Num;
#declare iNum360 = iNum*360;
#declare iNumMaxY = iNum*MaxY;
#declare N=Num;
#while(N>0)
  object {O translate <radii,N*iNumMaxY,0> rotate <0,N*iNum360,0> }
  #declare N = N-1;
#end

This should do a spiral between 0 and MaxY, evenly spread with Num
objects. 
I also have a spiral like #macro in the fireworks include file. The one
to make the trails of the fireworks.


//Spider
Julius Klatte wrote:
> 
> Does anyone know of an already existing tutorial about
> creating spiral shapes?
> 
> Thanks
> 
> Julius


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.