|
|
In article <40b33ec2$1@news.povray.org>,
"Felbrigg" <som### [at] microsoftcom> wrote:
> Can functions be procedural rather than mathematic? If so can someone show
> me how it might be done
You can not do "non-mathematical" functions. You can do conditional
functions, though. Look at the select() function...
select(COND, A, B [, C])
If C is left out: if COND < 0, A is used, otherwise B.
If C is included: if COND < 0, A is used, if COND == 0, B is used, if
COND > 0, C is used.
#declare foo2 = function {
select(x - 10, 0, 0, 0.5) + select(y - 10, 0, 0, 0.5)
}
--
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: <chr### [at] tagpovrayorg>
http://tag.povray.org/
Post a reply to this message
|
|