POV-Ray : Newsgroups : povray.general : Twist an isosurface : Re: Twist an isosurface Server Time
31 Jul 2024 16:32:02 EDT (-0400)
  Re: Twist an isosurface  
From: dave vanhorn
Date: 20 Dec 2006 22:52:48
Message: <458a0510$1@news.povray.org>
> The problem is in the declaration for f. Try one of the following
> instead:
>
> #declare f = function {K*x}
>
> or
>
> #declare f(y) = function {K*y} <-- This one errors, wants an '=' not '('

      #declare K = 1;
      #declare f = function {K*x}
#declare Twist_x = function (x,y,z) {( ( x * cos (f(y))) + (z * sin 
(f(y))) )}
      #declare Twist_z = function (x,y,z) {( (-x * sin (f(y))) + (z * cos 
(f(y))) )}

      #declare Heart_Function = function { f_torus 
(y-pow(abs(Twist_x),Sharpness)*Bend,
                                                   Twist_z,
                                                   Twist_x,
                                                   0.8,0.1) }


Very frustrated.. :(


Post a reply to this message

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