|
![](/i/fill.gif) |
By default only the first surface is found, so for transparent or CSG'ed
isosurfaces you put the keyword 'all_intersections' in the isosurface
definitions.
Hope this helps,
Mike Andrews.
"mienai[AT]hotmail.com" <mienai[AT]hotmail.com> wrote:
> Hopefully someone can help or tell me why what's happening is. I've taken
> one isosurface object and CSG'd it with another to produce a tube-like
> object. Unfortunately the inner surface of the tube isn't visible and
> makes anypart of the tube behind the inner part (from the camera's angle)
> transparent. Anyone know what's going on? Here's my code with the object
> cross-sectioned so you can see what I'm talking about.
>
> #declare R1=3;
> #declare tor1=
> isosurface{
>
>
function{sqrt(pow(sqrt(pow(x,2)+pow(z,2))-R1,2)+pow(y,2))-(atan(x/(abs(z)+.0000001))/pi+1)}
> contained_by{sphere{<0,0,0>,5}}
> }
> #declare tor2=
> isosurface{
>
>
function{sqrt(pow(sqrt(pow(x,2)+pow(z,2))-R1,2)+pow(y,2))-(atan(x/(abs(z)+.0000001))/pi+.8)}
> contained_by{sphere{<0,0,0>,5}}
> inverse
> }
> intersection{
> object{tor1 pigment{Green}}
> object{tor2}
> plane{y,0}
> pigment{Red}
> }
Post a reply to this message
|
![](/i/fill.gif) |