POV-Ray : Newsgroups : povray.unofficial.patches : Question about isosurface functions : Re: Question about isosurface functions Server Time
2 Sep 2024 12:19:40 EDT (-0400)
  Re: Question about isosurface functions  
From: Kevin Wampler
Date: 4 Jan 2000 15:19:18
Message: <38725525.57F20A09@tapestry.tucson.az.us>
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.

> 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.


Post a reply to this message

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