POV-Ray : Newsgroups : povray.advanced-users : Req: isosurface function : Re: Req: isosurface function Server Time
2 Nov 2024 09:20:04 EDT (-0400)
  Re: Req: isosurface function  
From: Nieminen Juha
Date: 17 Nov 1999 09:26:43
Message: <3832bb23@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)*vlength(<p.y,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.