POV-Ray : Newsgroups : povray.unofficial.patches : Question about isosurface functions : Re: Question about isosurface functions Server Time
2 Nov 2024 07:27:47 EDT (-0400)
  Re: Question about isosurface functions  
From: Ron Parker
Date: 4 Jan 2000 15:32:13
Message: <387258cd@news.povray.org>
On Tue, 04 Jan 2000 13:16:37 -0700, Kevin Wampler wrote:
>> Without looking at the code, it looks like it's using too high a priority
>> for unary minus, so it's treating "-x^2" as "(-x)^2".  BTW, I suspect you'd
>> get better performance with the sqr() function.
>
>That's what I thought, but upon closer examination, it appears to only assign
>the unary minus a higher priority on the first term, so y-exp(-x^2-z^2)
>renders differently from y-exp(-z^2-x^2).  Good point about the sqr()
>function, I hadn't realized that it was optimized.
>

The second term isn't a unary minus; it's the binary subtraction operator.

-- 
These are my opinions.  I do NOT speak for the POV-Team.
The superpatch: http://www2.fwi.com/~parkerr/superpatch/
My other stuff: http://www2.fwi.com/~parkerr/traces.html


Post a reply to this message

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