POV-Ray : Newsgroups : povray.advanced-users : function select logic : Re: function select logic Server Time
26 Apr 2024 15:22:47 EDT (-0400)
  Re: function select logic  
From: Mike Horvath
Date: 23 Nov 2016 12:20:15
Message: <5835cfcf$1@news.povray.org>
On 11/23/2016 9:30 AM, scott wrote:
> 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.

Mike


Post a reply to this message

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