|
![](/i/fill.gif) |
In article <3906DDC6.6A137E88@erols.com>, Rik Kline <rik### [at] erols com>
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] yahoo com
TAG(Technical Assistance Group) e-mail: chr### [at] tag povray org
Personal Web page: http://chrishuff.dhs.org/
TAG Web page: http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |