POV-Ray : Newsgroups : povray.advanced-users : function select logic : Re: function select logic Server Time
2 May 2024 21:54:57 EDT (-0400)
  Re: function select logic  
From: scott
Date: 24 Nov 2016 03:04:09
Message: <58369ef9$1@news.povray.org>
>> What do you mean by discarded? A function must always return a value,
>> there is no "discarded" option. Where/how are you going to use these
>> three functions and what do you want the final result to be if the input
>> RGB is out of range? You could return a special value like -1 to
>> indicate a "discarded" vector - but it depends what you're going to do
>> next with the result.
>>
>
> It's for an isosurface, actually, not a color. It just so happens I'm
> modeling a color solid. So color = shape. Sorry.
>
> When any of R, G or B are outside the range 0..1, then I do not want it
> to be part of the shape. I think a select statement can do this.

Ignore all our guesses then as to what you wanted - clipka already 
posted what you should do.


Post a reply to this message

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