POV-Ray : Newsgroups : povray.general : Blob Object Help : Re: Blob Object Help Server Time
30 Jul 2024 18:16:22 EDT (-0400)
  Re: Blob Object Help  
From: Rarius
Date: 2 Sep 2008 18:43:19
Message: <48bdc187@news.povray.org>
"Niccolo" <hyd### [at] gmailcom> wrote in message 
news:web.48bd8e234d407d5d800b8a460@news.povray.org...
>I am currently doing some analysis of scientific data and the final output 
>is a
> ..pov blob object that is cubic but with pores.  The idea is to visualize 
> the
> solid and void space within a very small particle.  The .POV file renders 
> just
> fine and gives me a picture of the solid space.  what i would like to do 
> is
> replace the void space with soid, and the solid with void, within the 
> cube.
> any ideas out there?
>
> thanks
> niccolo

Its simple.. just use a CSG difference.

Assuming your current blob fits into the unit cube (<0, 0, 0> to <1, 1, 1>), 
just do the following.

difference
{
    box{<0, 0, 0>, <1, 1, 1>}
    blob{...}
}

You might need to remove any bounding you have on the blob currently to 
avoid coincident faces.

Rarius


Post a reply to this message

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