POV-Ray : Newsgroups : povray.general : Twist an isosurface : Re: Twist an isosurface Server Time
31 Jul 2024 16:27:16 EDT (-0400)
  Re: Twist an isosurface  
From: "Jérôme M. Berger"
Date: 21 Dec 2006 01:19:20
Message: <458a2768$1@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

dave vanhorn wrote:
>> 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 '('
> 
	Uh, yes sorry it should have been:

#declare f = function (y) {K*y}

>       #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.. :(
> 
	Why? Didn't the code you just posted work?

		Jerome
- --
+------------------------- Jerome M. BERGER ---------------------+
|    mailto:jeb### [at] freefr      | ICQ:    238062172            |
|    http://jeberger.free.fr/     | Jabber: jeb### [at] jabberfr   |
+---------------------------------+------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFiidld0kWM4JG3k8RAh3DAJ0dF0xytvmN7MlW5BoEXTxc/yN1tQCfc0jJ
N45qh28DOPfPJCP7b0mc+94=
=c0cs
-----END PGP SIGNATURE-----


Post a reply to this message

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