POV-Ray : Newsgroups : povray.advanced-users : Isosurface bounds Server Time
24 Nov 2024 23:56:33 EST (-0500)
  Isosurface bounds (Message 1 to 2 of 2)  
From: Andrew C on Mozilla
Subject: Isosurface bounds
Date: 22 Jul 2004 16:28:55
Message: <41002387@news.povray.org>
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?

Andrew @ home.


Post a reply to this message

From: Mike Williams
Subject: Re: Isosurface bounds
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.