|
![](/i/fill.gif) |
-----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] free fr | ICQ: 238062172 |
| http://jeberger.free.fr/ | Jabber: jeb### [at] jabber fr |
+---------------------------------+------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFFiidld0kWM4JG3k8RAh3DAJ0dF0xytvmN7MlW5BoEXTxc/yN1tQCfc0jJ
N45qh28DOPfPJCP7b0mc+94=
=c0cs
-----END PGP SIGNATURE-----
Post a reply to this message
|
![](/i/fill.gif) |