|
|
Wasn't it who wrote:
>With a little bit more thinking, I could find the right operation for
>bending an object (along the x-axis), so that a cylinder is bent to a
>torus:
>
>xnew = atan(z/x)*radius
>ynew = y
>znew = sqrt(x^2+z^2)-radius
>
>--> function(atan(z/x)*radius, y, sqrt(x^2+z^2)-radius)
>
>The rendering speed is ok, so I can use it.
>
I don't think you need the atan(z/x)*radius, you can just use
function { F(sqrt(x*x+z*z)-r1, y, z) }
See <http://www.econym.demon.co.uk/isotut/substitute.htm#sor>
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
|