POV-Ray : Newsgroups : povray.general : Bending isosurface functions : Re: Bending isosurface functions Server Time
3 Aug 2024 02:19:21 EDT (-0400)
  Re: Bending isosurface functions  
From: nomail
Date: 26 May 2004 17:00:00
Message: <web.40b5045a1e85861e77fcd8f50@news.povray.org>
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.


Post a reply to this message

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