POV-Ray : Newsgroups : povray.advanced-users : What is the equation for a helix? : Re: What is the equation for a helix? Server Time
2 Nov 2024 09:20:43 EDT (-0400)
  Re: What is the equation for a helix?  
From: Chris Huff
Date: 17 Dec 1999 23:08:38
Message: <chrishuff_99-C99CF6.23091117121999@news.povray.org>
In article <385ACC3F.AD113882@isd.net>, lfo### [at] isdnet wrote:

> Identical to one formed by a sphere_sweep? (ie circular cross-section)

Well, this one looks like a sphere sweep, the documentation covers the 
parameters:
   function "helix1", <1, 5, 0.2, 1, 1, 1, 0>
This function is a bit different, it will always create circular 
surfaces when sliced with a plane perpendicular to the axis of the 
helix. I think. It doesn't act like a sphere_sweep, though, more like a 
circle_sweep. I broke it up to make it more modular.
#declare cylFunc = function {sqrt((x-1)^2 + z^2)-y}

function {cylFunc(x+sin(5*y), 0.5, z+cos(5*y))}

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

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