POV-Ray : Newsgroups : povray.general : Double Helix : Re: Double Helix Server Time
9 Aug 2024 23:25:51 EDT (-0400)
  Re: Double Helix  
From: Rik Kline
Date: 26 Apr 2000 14:52:13
Message: <39073998.8BB80AD7@erols.com>
Thanks

Chris Huff wrote:

> In article <3906DDC6.6A137E88@erols.com>, Rik Kline <rik### [at] erolscom>
> wrote:
>
> > Does any one have any code or know of any for a double helix object?
>
> Try something like this(untested!):
> #macro DoubleHelix(Num, Twists, Height, Radius, MinorRadius, Offset)
>     union {
>         #local J=0;
>         #while(J<Num)
>             sphere {< Radius, Height*J/(Num-1), 0>, MinorRadius
>                 rotate y*360*Twists*J/(Num-1)
>             }
>             sphere {< Radius, Height*J/(Num-1), 0>, MinorRadius
>                 rotate y*360*Twists*J/(Num-1) + y*Offset
>             }
>             #local J=J+1;
>         #end
>     }
> #end
>
> --
> Christopher James Huff - Personal e-mail: chr### [at] yahoocom
> TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
> Personal Web page: http://chrishuff.dhs.org/
> TAG Web page: http://tag.povray.org/


Post a reply to this message

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