POV-Ray : Newsgroups : povray.advanced-users : Isosurface bounds : Re: Isosurface bounds Server Time
28 Jul 2024 18:18:09 EDT (-0400)
  Re: Isosurface bounds  
From: Mike Williams
Date: 22 Jul 2004 17:00:22
Message: <nFC6+FA0nCABFw6j@econym.demon.co.uk>
Wasn't it Andrew C on Mozilla who wrote:
>How do I do that thing like in the POV-Ray manual where an isosurface is 
>(say) blue, but where it's been "cut away" by the contained_by shape, 
>it's (say) red?

One way to do it is to intersect the isosurface with a slightly shrunk
copy of the container.

intersection {
  isosurface {
    function { whatever }
    contained_by {sphere {0,2}}
    all_intersections
    texture {somethingelse}
  }
  sphere {0,1.99999
    texture {something}
  }
}



-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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