POV-Ray : Newsgroups : povray.unofficial.patches : Idea for functions : Re: Idea for functions Server Time
2 Sep 2024 06:15:27 EDT (-0400)
  Re: Idea for functions  
From: Chris Huff
Date: 5 May 2000 08:26:49
Message: <chrishuff_99-4B3035.07300205052000@news.povray.org>
In article <3912a80f@news.povray.org>, Warp <war### [at] tagpovrayorg> 
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] yahoocom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://chrishuff.dhs.org/
TAG Web page: http://tag.povray.org/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.