|
![](/i/fill.gif) |
web.43c4e70d47b9b0fe72071f7b0@news.povray.org...
> Hello everybody,
>
> I need to understand exactly how can I specify in POV-RAY a
> user-defined-function...I read many guide and tutorial and I have
> not
> understand if it's possible or not...for example: I need to define a
> function that take 3 parameters (a,b,c) and give in output sqrt
> (a^2+b^2+c^2)...Can somebody send me an example and tell me exactly
> where I
> have to put this function's code in a povray source file?
#macro myFunction(a,b,c)
sqrt(a*a+b*b+c*c)
#end
...
#declare foo=myFunction(3,4,5);
hope that help,
klp
Post a reply to this message
|
![](/i/fill.gif) |