|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
|
|