|
|
"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!
Hello, mate. Your code is really helpful. Now I can create the one that is
really close to the final outcome. However, I met some problems with the
coordinates this spring. The picture is the outcome given by your code. I would
appreciate it if you could help me with it (by how to shift the spring to the
left and down a bit).
Post a reply to this message
Attachments:
Download '4.png' (28 KB)
Preview of image '4.png'
|
|