|
![](/i/fill.gif) |
On Wed, 12 Dec 2001 23:22:43 +0100, marabou <not### [at] available yet> wrote:
> where lies the secret of the non-intersectional balls? in the
> trace()-function?
partially yes
if you don't know what 'trace' does check description under
http://www.povray.org/working-docs/id000136.html#6_1_4_6
> is there a way for this in v3.1?
yes but you have to know some basic algorithms connected with finding ray's
intersection with objects (i.e. sphere)
iirc you can find some description of it within 'raytracer' part of new
documentation at http://www.povray.org/working-docs/id000107.html#4_2
ABX
--
#declare _=function(a,b,x){((a^2)+(b^2))^.5-x}#default {pigment{color rgb 1}}
union{plane{y,-3}plane{-x,-3}finish{reflection 1 ambient 0}}isosurface{ //ABX
function{_(x-2,y,1)&_((x+y)*.7,z,.1)&_((x+y+2)*.7,z,.1)&_(x/2+y*.8+1.5,z,.1)}
contained_by{box{<0,-3,-.1>,<3,0,.1>}}translate z*15finish{ambient 1}}//POV35
Post a reply to this message
|
![](/i/fill.gif) |