|
![](/i/fill.gif) |
In article <3912a80f@news.povray.org>, Warp <war### [at] tag povray org>
wrote:
> How about adding support for variables, conditionals (if) and loops
> (while) to functions (used in isosurfaces, pigments...)?
> This would enhance a lot the possibilities of the functions. It would
> allow, for example, making a Mandelbrot pattern function.
There is already an if() "statement", it is a function. As I remember,
the syntax is like this: if(CONDITION, IF_VAL, ELSE_VAL)
Support for variables and other flow control would be very useful, but I
suspect it would require rewriting a large portion of the function code.
I don't understand much of it though, I could be wrong.
--
Christopher James Huff - Personal e-mail: chr### [at] yahoo com
TAG(Technical Assistance Group) e-mail: chr### [at] tag povray org
Personal Web page: http://chrishuff.dhs.org/
TAG Web page: http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |