POV-Ray : Newsgroups : povray.general : CSG difference of isosurfaces : Re: CSG difference of isosurfaces Server Time
16 Apr 2024 07:01:58 EDT (-0400)
  Re: CSG difference of isosurfaces  
From: Alain
Date: 13 Nov 2016 16:49:19
Message: <5828dfdf$1@news.povray.org>

> William F Pokorny <ano### [at] anonymousorg> wrote:
>> #declare FnShell = function (x,y,z) {
>>      max(Fn00(x,y,z),Fn00_inv(x,y,z))
>> }
>
> Goes to show just how little I understand, I don't see how max(V1,V2) produces
> anything but a single value for the next function. Hence, how could it create
> both outer and inner surfaces?
>
> Not sure I'm looking at this the right way but I tried to output the value(s) to
> message stream to find out more:
>
> #local Maxim=function{FnShell(x,y,z)};
> #local Posit=function{Fn00(x,y,z)};
> #local Minus=function{Fn00_inv(x,y,z)};
>
> #warning concat(str(Maxim(1,1,1),3,3)," = maxim()")
> #warning concat(str(Posit(1,1,1),3,3)," = posit()")
> #warning concat(str(Minus(1,1,1),3,3)," = minus()")
>
> Which displays the numbers (my #debug does not show, #warning does):
>
> 1.212
> 1.212
> -1.252
>
> Sorry to post this here but as I was about to start a new post I thought the
> originator of this thread might want to know about this too.
>
> Bob
>
>
>
#debug print out only full lines. Add "\n" in the #debug string:
#debug concat(str(Maxim(1,1,1),3,3)," = maxim()\n")

Alain


Post a reply to this message

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