POV-Ray : Newsgroups : povray.advanced-users : Req: isosurface function : Re: Req: isosurface function Server Time
30 Jul 2024 14:29:01 EDT (-0400)
  Re: Req: isosurface function  
From: Margus Ramst
Date: 18 Nov 1999 16:43:25
Message: <383473A5.371BBA02@peak.edu.ee>
Nieminen Juha wrote:
> 
>   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)
> 

Thank you. It works well, with just one problem: the pattern is mirrored along
the XY plane. I'll try to use my own brains to fix this :)

Margus


Post a reply to this message

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