POV-Ray : Newsgroups : povray.general : Double Helix : Re: Double Helix Server Time
9 Aug 2024 23:25:31 EDT (-0400)
  Re: Double Helix  
From: David Fontaine
Date: 26 Apr 2000 21:42:42
Message: <39079A82.AC43AE24@faricy.net>
Chris Huff wrote:

> 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

I would use a low-throshold blob; less damanding on resources and faster to
render.

--
David Fontaine     <dav### [at] faricynet>    ICQ 55354965
Please visit my website: http:/www.faricy.net/~davidf/


Post a reply to this message

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