POV-Ray : Newsgroups : povray.general : CSG difference of isosurfaces : Re: CSG difference of isosurfaces Server Time
24 Apr 2024 15:43:45 EDT (-0400)
  Re: CSG difference of isosurfaces  
From: omniverse
Date: 12 Nov 2016 12:40:01
Message: <web.582753dcedf187fc9c5d6c810@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


Post a reply to this message

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