POV-Ray : Newsgroups : povray.newusers : isosurface problem : isosurface problem Server Time
30 Jul 2024 00:24:07 EDT (-0400)
  isosurface problem  
From: mienai[AT]hotmail com
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

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