POV-Ray : Newsgroups : povray.advanced-users : using the select() function for evaluating conditioinals at runtime : using the select() function for evaluating conditioinals at runtime Server Time
1 Jul 2024 05:45:58 EDT (-0400)
  using the select() function for evaluating conditioinals at runtime  
From: ghostch
Date: 26 Aug 2009 18:45:00
Message: <web.4a95ba727ac00785dea286ee0@news.povray.org>
hi
i am having multiple functions defined in povray, that all return a float value,
now i would like to have povray select a specific function from them depending
on a given coordinate (at runtime!). i think is saw someone using a statement
like
select((x>10&x<40), f1(x,y,z), f2(x,y,z))
*inside* a function but i am having no luck with that. there is no warning or
error, but povray seems to ignore the conditional statement.
is someone able to explain this to me?
thx,
Simon


Post a reply to this message

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