POV-Ray : Newsgroups : povray.general : Emergency help: Can someone teach me how to make spirals? : Re: Emergency help: Can someone teach me how to make spirals? Server Time
7 Jan 2025 23:38:53 EST (-0500)
  Re: Emergency help: Can someone teach me how to make spirals?  
From: jr
Date: 4 Jan 2025 07:20:00
Message: <web.677926c13c0a8cfab2e841a6cde94f1@news.povray.org>
hi,

"DD123" <286### [at] qqcom> wrote:
> "Kenneth" <kdw### [at] gmailcom> wrote:
> > "DD123" <286### [at] qqcom> wrote:
> > > Hello everyone,
> > > Can someone teach me how to create spirals
> > > exactly like figure 1?
> > >
> >
> > Here is a slightly re-worked version of your code (and uses many more spline
> > points to get smoother curves.) Note the '150' in three places.
> >
> > sphere_sweep {
> > linear_spline 150,
> > #declare N = 0;
> > #while(N < 150)
> > #declare RAD = N*9*pi/150; // 9*pi produces 4 1/2 'coils'
> > <2*cos(RAD), .028*N, 2*sin(RAD)>, .1
> > #declare N = N + 1;
> > #end
> > pigment {color Yellow}
> > }
> >
> > Have fun!
> ...
> appreciate it if you could help me with it (by how to shift the spring to the
> left and down a bit).

<https://wiki.povray.org/content/Reference:Transformations#Translate>


regards, jr.


Post a reply to this message

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