POV-Ray : Newsgroups : povray.advanced-users : conditional isosurface Server Time
25 Nov 2024 19:44:38 EST (-0500)
  conditional isosurface (Message 1 to 2 of 2)  
From: David Wallace
Subject: conditional isosurface
Date: 2 Apr 2002 12:22:10
Message: <3ca9e8c2@news.povray.org>
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?  The tutorials are clueless or 404.


Post a reply to this message

From:
Subject: Re: conditional isosurface
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.