Thread Subject: Volume between two patch objects

Subject: Volume between two patch objects

From: Tracy

Date: 16 Jun, 2009 18:35:03

Message: 1 of 2

Hi,

I have two patch objects:
patch('Vertices',pu,'Faces',fu,'FaceColor','r', 'FaceAlpha', .3);
patch('Vertices',p,'Faces',f,'FaceColor','b', 'FaceAlpha', .3);

I've found their individual volumes, but I'd like to find the volume that they overlap (hence the volume difference.

I thought about going along the z-axis and compare the x/y values, but that didn't work out because the "pu" and "p" have different values in the z component. I also thought in the direction of treating them as surfaces, and finding the volume between them, but I don't know if that's possible in Matlab.

Does anyone have an idea?
Thanks!

Subject: Volume between two patch objects

From: Luigi Giaccari

Date: 23 Jun, 2009 17:00:18

Message: 2 of 2

"Tracy " <c.januarytenth@gmail.com> wrote in message <h18okm$20s$1@fred.mathworks.com>...
> Hi,
>
> I have two patch objects:
> patch('Vertices',pu,'Faces',fu,'FaceColor','r', 'FaceAlpha', .3);
> patch('Vertices',p,'Faces',f,'FaceColor','b', 'FaceAlpha', .3);
>
> I've found their individual volumes, but I'd like to find the volume that they overlap (hence the volume difference.
>
> I thought about going along the z-axis and compare the x/y values, but that didn't work out because the "pu" and "p" have different values in the z component. I also thought in the direction of treating them as surfaces, and finding the volume between them, but I don't know if that's possible in Matlab.
>
> Does anyone have an idea?
> Thanks!



YOu have to get a Voxel decomposition and find which small cubic part is inside both of them using an InPolyedron Test.
The approximation becomes better when voxels are smaller

Regards Luigi

http://giaccariluigi.altervista.org/blog/

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
patch Tracy 16 Jun, 2009 14:39:04
volume Tracy 16 Jun, 2009 14:39:04
rssFeed for this Thread

Contact us at files@mathworks.com