|
![](/i/fill.gif) |
> I have attempted to read the user defined function manual, but it
doesn't really
> go into much detail, or give examples of anything more than a one
line function.
That's because functions don't support what you're trying to do. They
only support simple mathematical expressions. You probably want to make
a #macro instead. Then #declare will work.
#macro drawPlanet(siz, rads, ang, col)
#declare xcord = rads * cos(ang * (pi / 180) );
#declare zcord = rads * sin(ang * (pi / 180) );
sphere
{
<xcord, 0, zcord>, siz
texture { pigment { col } }
}
#end
- Slime
Post a reply to this message
|
![](/i/fill.gif) |