POV-Ray : Newsgroups : povray.general : Blob Object Help Server Time
27 Nov 2024 14:44:32 EST (-0500)
  Blob Object Help (Message 1 to 5 of 5)  
From: Niccolo
Subject: Blob Object Help
Date: 2 Sep 2008 15:05:00
Message: <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


Post a reply to this message

From: Rarius
Subject: Re: Blob Object Help
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

From: gregjohn
Subject: Re: Blob Object Help
Date: 3 Sep 2008 19:10:00
Message: <web.48bf1925ab1bd4e134d207310@news.povray.org>
"Rarius" <rar### [at] rariuscouk> wrote:
>
> difference
> {
>     box{<0, 0, 0>, <1, 1, 1>}
>     blob{...}
> }
>

Why cannot one simply do:

    box{<0, 0, 0>, <1, 1, 1>}

?


Post a reply to this message

From: Alain
Subject: Re: Blob Object Help
Date: 3 Sep 2008 22:56:33
Message: <48bf4e61$1@news.povray.org>
gregjohn nous illumina en ce 2008-09-03 19:09 -->
> "Rarius" <rar### [at] rariuscouk> wrote:
>> difference
>> {
>>     box{<0, 0, 0>, <1, 1, 1>}
>>     blob{...}
>> }
>>
> 
> Why cannot one simply do:
> 
>     box{<0, 0, 0>, <1, 1, 1>}
> 
> ?
> 
> 
The blob is larger than the box.

-- 
Alain
-------------------------------------------------
An optimist is someone who thinks the future is uncertain.


Post a reply to this message

From: Tim Attwood
Subject: Re: Blob Object Help
Date: 4 Sep 2008 20:09:27
Message: <48c078b7$1@news.povray.org>
You can do it like this too...

#declare my_blob = {
   ...
};

intersection {
  object {my_blob inverse}
  box {...}
}

That way you can control positive or negative space
with the inverse keyword, or lack thereof.


Post a reply to this message

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