I was just surprised by an isosurface that was completely black
all over the bounding box in the volume with abs(x) > 1.
The reason was a square root of a negative number in
the isosurface function similar to the following.
isosurface {
function{ y - sqrt(1 - x*x) }
contained_by { box { -1.1, 1.1 } }
max_gradient 5
texture {
pigment {rgb <1/3,1/3,1>}
finish {ambient 0.2 phong 1.0 phong_size 120}
}
}
Sebastian
Post a reply to this message
|