POV-Ray : Newsgroups : povray.general : Re: Bug (?) with a clipped isosurface Server Time
1 Aug 2024 16:25:37 EDT (-0400)
  Re: Bug (?) with a clipped isosurface (Message 1 to 2 of 2)  
From:
Subject: Re: Bug (?) with a clipped isosurface
Date: 4 Jul 2005 10:50:00
Message: <web.42c94bd6b0a996489431d3a60@news.povray.org>
Hello,

I have a problem with an isosurface: one part of it does not show up.

My software:

Persistence of Vision(tm) Ray Tracer Version 3.6.1 (g++ 3.4.1 @
 i686-pc-linux-gnu)

My code:
=====
isosurface {
  function{y-x*z}
  max_gradient 6
  contained_by {sphere {0 6}}
  clipped_by {box {<-2,-1,-4> <2,2,4> rotate -45*y}}
  pigment {color rgbt .8}
}
//box {<-2,-1,-4> <2,2,4> rotate -45*y pigment {color rgbt .8}}
light_source {<2,5,1> color rgb 1}
camera {
  orthographic
  location <2,2,-8> look_at <0,.3,0>
  up 10*y right 10*4/3*x
}
background {<1,1,1>}
=====

  When I take off the comment // before the box, the isosurface shows up
correctly. With the comment, a part of the isosurface is missing.

  Thanks for your help,



Post a reply to this message

From: Mike Williams
Subject: Re: Bug (?) with a clipped isosurface
Date: 4 Jul 2005 14:24:53
Message: <pAup$OANrXyCFw2L@econym.demon.co.uk>

>Hello,
>
>I have a problem with an isosurface: one part of it does not show up.

"clipped_by" Is a CSG operation and requires a suitable max_trace
setting (or "all_intersections") just as you would if you had used
"difference" or "intersection".

isosurface {
  function{y-x*z}
  max_gradient 6
  max_trace 2                   // Added this line
  contained_by {sphere {0 6}}
  clipped_by {box {<-2,-1,-4> <2,2,4> rotate -45*y}}
  pigment {color rgbt .8}
}
light_source {<2,5,1> color rgb 1}
camera {
  orthographic
  location <2,2,-8> look_at <0,.3,0>
  up 10*y right 10*4/3*x
}
background {<1,1,1>}

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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