|
![](/i/fill.gif) |
#ifndef (SolidHeart)
#ifndef (TwistHeart)
// Original untwisted version
#declare Heart_Function = function { f_torus
(y-pow(abs(x),Sharpness)*Bend, z*1, x, 0.8,0.1) }
#else
//Twisted version
#declare K = 1; //Not sure where to set this yet, try 1.0
#declare f = function {K*y}
#declare Twist_x = function(x,y,z,f) //<-- Errors here with "expected
parameter identifier, function identifier found instead"
{x * cos (f (y)) + z * sin (f (y))}
#declare Twist_z = function(x,y,z,f)
{(-x * sin (f (y)) + z * cos (f (y))}
#declare Heart_Function = function { f_torus (y-pow(abs(x * cos (f
(y)) + z * sin (f (y))),Sharpness)*Bend,
(-x * sin (f (y)) + z *
cos (f (y))*1),
(x * cos (f (y)) + z *
sin (f (y))),
0.8,0.1) }
#end
#else
#declare Heart_Function = function { f_sphere
(y-pow(abs(x),Sharpness)*Bend, z*2, x, 0.6 ) }
#end
Post a reply to this message
|
![](/i/fill.gif) |