POV-Ray : Newsgroups : povray.newusers : isosurface problem Server Time
1 Nov 2024 21:20:42 EDT (-0400)
  isosurface problem (Message 1 to 3 of 3)  
From: mienai[AT]hotmail com
Subject: isosurface problem
Date: 8 Dec 2004 04:10:00
Message: <web.41b6c45f92ff4ee0222789b40@news.povray.org>
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

From: Mike Andrews
Subject: Re: isosurface problem
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

From: mienai[AT]hotmail com
Subject: Re: isosurface problem
Date: 8 Dec 2004 17:15:00
Message: <web.41b77ba8758552435df24d3f0@news.povray.org>
"Mike Andrews" <nomail@nomail> wrote:
> 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.


Thanks, that fixed what my problem was.  Onto the next...


Post a reply to this message

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