POV-Ray : Newsgroups : povray.general : #switch #case in function? : Re: #switch #case in function? Server Time
27 Jul 2024 07:45:11 EDT (-0400)
  Re: #switch #case in function?  
From: Bald Eagle
Date: 16 Jun 2024 07:40:00
Message: <web.666ece78bf6d15f11f9dae3025979125@news.povray.org>
Ilya Razmanov <ily### [at] gmailcom> wrote:

Hi Ilya,

I've done various versions of your Boolean product approach, but most often, it
just comes down to using nested select () statements.

Just think of them as #if - (then) - #else statements and it will all make
sense.

Also, if it helps, you can get all of your equation expressions sorted out and
commented in a macro, and have the macro return the function for further use in
the scene.

That way you can also have plenty of #debug statements and whatever else you
need to make sure you're doing things right before you instantiate the actual
function.

- Bill


Post a reply to this message

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