POV-Ray : Newsgroups : povray.advanced-users : Req: isosurface function : Re: Req: isosurface function Server Time
30 Jul 2024 14:27:27 EDT (-0400)
  Re: Req: isosurface function  
From: Nieminen Juha
Date: 18 Nov 1999 10:31:21
Message: <38341bc9@news.povray.org>
After _LOTS_ of thinking I got a really short answer:

  Given an aperture angle 'Angle' for the cone and a point 'p' in space,
the color for that point is:

 -sin(Angle)*abs(p.x)+cos(Angle)*sqrt(p.y*p.y+p.z*p.z)


-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;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.