|
![](/i/fill.gif) |
On Tue, 11 Sep 2001 00:52:21 -0400, Mark Wagner wrote:
>
>Mael wrote in message <3b9c6afa@news.povray.org>...
>>i know it s too late for pov3.5 but maybe an idea for futur patches : what
>>about adding a "trace function" for functions ? something like
>>ftrace(start,dir,object) which return 1 if the ray intersect "object" and
>>else 0 . This would allow a visibility pattern , a projection pattern , etc
>
>
>What could this do that "trace()", which is in POV 3.5, can't do?
Be used in functions.
Unfortunately, that doesn't work. By the time a function gets parsed, the
#declared object you passed to trace() has been returned to the bit-bucket.
This would be a major change.
--
#macro R(L P)sphere{L F}cylinder{L P F}#end#macro P(V)merge{R(z+a z)R(-z a-z)R(a
-z-z-z a+z)torus{1F clipped_by{plane{a 0}}}translate V}#end#macro Z(a F T)merge{
P(z+a)P(z-a)R(-z-z-x a)pigment{rgbt 1}hollow interior{media{emission T}}finish{
reflection.1}}#end Z(-x-x.2y)Z(-x-x.4x)camera{location z*-10rotate x*90}
Post a reply to this message
|
![](/i/fill.gif) |