POV-Ray : Newsgroups : povray.newusers : isosurface problem : Re: isosurface problem Server Time
30 Jul 2024 00:17:28 EDT (-0400)
  Re: isosurface problem  
From: Mike Andrews
Date: 8 Dec 2004 05:35:00
Message: <web.41b6d83a758552435e1e98150@news.povray.org>
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

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