POV-Ray : Newsgroups : povray.advanced-users : Spirals : Re: Spirals Server Time
2 Nov 2024 11:27:40 EDT (-0400)
  Re: Spirals  
From: Bob Hughes
Date: 21 Sep 1999 14:57:33
Message: <37e7d51d@news.povray.org>
Coil Generator available from Chris Colefax is probably a fine enough
example : ) but here's another one (courtesy Dave Dunn):

/* Spiral Tap */
// INPUTS
#declare Clockwise = true;
#declare Number_Of_Rotations = 3;
#declare Start_Radius = 10;
#declare Spiral_Height = 30;
#declare Blob_Radius = 1;
#declare Spiral_Color = Red;
#declare Invert = false;
#declare Tip_Over = false;
// DECLARATIONS
#declare Spiral = union {
#declare Count = 0;
#while(Count<360*Number_Of_Rotations)
blob {
threshold .5
sphere
{<Start_Radius-(Count*(Start_Radius/(360*Number_Of_Rotations))),0,0>,B
lob_Radius,1}
#if (Clockwise = true)
rotate y*Count
#else
rotate y*-Count
#end
translate <0,Count*(Spiral_Height/(Number_Of_Rotations*360)),0>
pigment {Spiral_Color}}
#declare Count = Count+1;
#end
#if(Invert = true)
translate <0,-Spiral_Height/2,0>
rotate z*180
translate <0,Spiral_Height/2,0>
#end
#if(Tip_Over = true)
rotate x*90
#end}
object {Spiral}

Bob

AC <amb### [at] teliacom> wrote in message news:37e7baa2@news.povray.org...
>
> Lance Birch <lan### [at] usanet> wrote in message
> news:37e7a6da@news.povray.org...
> > ta da... ;)
> >
> > Remco de Korte <rem### [at] xs4allnl> wrote in message
> > news:37E79B5D.D2555C74@xs4all.nl...
> > > Nieminen Juha wrote:
> > > >
> > > > Lance Birch <lan### [at] usanet> wrote:
> > > > : No he wants an actual 3D helical spiral...
> > > >
> > > >   How do you know? Strictly speaking he didn't actually say
that he
> > wants
> > > > a helical _object_ but a helical form. Perhaps he was
referring to a
> > > > helical pattern of colors.
> > > >
> > >
> > > ...
> > > is it bending the objects or is it a nuber of objects placed
very
> smartly?
> > > ...
> >
> >
> Think of a spring.... somthing like that....
>
>


Post a reply to this message

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