POV-Ray : Newsgroups : povray.advanced-users : conditional isosurface : Re: conditional isosurface Server Time
29 Jul 2024 12:29:47 EDT (-0400)
  Re: conditional isosurface  
From:
Date: 2 Apr 2002 12:39:18
Message: <foqjauc1fb7cu3gmepen6bd96s3c7gjtr7@4ax.com>
On Tue, 2 Apr 2002 12:24:46 -0500, "David Wallace" <dar### [at] earthlinknet>
wrote:
> How do I set up a function that uses a conditional?  In MegaPOV the syntax
> is:
> if(x, z*z+x*x, z*z-atan(x))
> How does POV 3.5 carry this out?

select( float , value for float < 0, value for float >= 0 )
select( float , value for float < 0, value for float = 0, value for float > 0)

> The tutorials are clueless or 404.

Have you tried obvious tutorial attached to standard distribution ? Look there
at 6.1.3 chapter :-)

ABX


Post a reply to this message

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