POV-Ray : Newsgroups : povray.binaries.images : Question about isosurface functions and & : Re: Question about isosurface functions and & Server Time
1 Oct 2024 18:30:30 EDT (-0400)
  Re: Question about isosurface functions and &  
From: Warp
Date: 31 Jul 2000 08:57:02
Message: <3985779e@news.povray.org>
I got it.
  For some reason the operator & has higher precedence than + or -. So the
solution is to put proper parentheses:

function { (y-x) & (-(y+.1)+x) }

  Instead of deleting my question, I'll just leave it here for others to
learn from my mistake.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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