POV-Ray : Newsgroups : povray.newusers : Add twist to isosurface : Add twist to isosurface Server Time
27 Jun 2024 17:24:41 EDT (-0400)
  Add twist to isosurface  
From: kurtz le pirate
Date: 24 Jun 2012 12:03:22
Message: <kurtzlepirate-F0C724.18032124062012@news.povray.org>
Hello,

I made a simple isosurface defined as a cylinder minus a groove :

  function { sqrt(pow(x,2) + pow(z,2)) - Groove(x,z) }

with :

  Groove = function(a,b) { R + q - 2*q*abs(cos(ang(a,b)))}


Now, a want to twist this isosurface along y axis. I found on Internet 
that, x and z must be modified with functions like this :

  TwistX = function { x*cos(a*y) - z*sin(a*y) }
  TwistZ = function { x*sin(a*y) + z*cos(a*y) }

   
ok... but how to 'put' this twist's functions 'in' my main isosurface 
function ?


this should be simple, but I can not do :(


thanks.
-- 
klp


Post a reply to this message

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