Thread Subject: how to calculate volume of a 3D polygon?

Subject: how to calculate volume of a 3D polygon?

From: Jveer

Date: 26 Dec, 2008 00:27:01

Message: 1 of 7

does anyone know of a simple way to calculate the volume of a 3D polygon- usually imported from a CAD file?

Subject: how to calculate volume of a 3D polygon?

From: Jveer

Date: 26 Dec, 2008 01:42:01

Message: 2 of 7

resolved - found that convhulln gives volume.

Subject: how to calculate volume of a 3D polygon?

From: ImageAnalyst

Date: 26 Dec, 2008 03:47:21

Message: 3 of 7

On Dec 25, 8:42=A0pm, "Jveer " <jv...@jveer.com> wrote:
> resolved - found that convhulln gives volume.

---------------------------------
Jveer:
Are you sure? Convex hull gives a shape as though you wrapped a
stretchy sheet around your object. So the convex hull of a banana
would be like a thick "D" shape, and the convex hull of a donut/torus
would be like a cylinder. The convex hull of a thick, 3-dimensional
"E" shape would be a rectangular box. This is not the same volume as
the actual volume unless your object is convex.
Regards,
ImageAnalyst

Subject: how to calculate volume of a 3D polygon?

From: ImageAnalyst

Date: 26 Dec, 2008 03:48:21

Message: 4 of 7

On Dec 25, 7:27=A0pm, "Jveer " <jv...@jveer.com> wrote:
> does anyone know of a simple way to calculate the volume of a 3D polygon-=
 usually imported from a CAD file?

------------------------------
Do you have a 3D image, or just a list of (x,y,z) vertex coordinates?

Subject: how to calculate volume of a 3D polygon?

From: Jveer

Date: 27 Dec, 2008 09:40:04

Message: 5 of 7


oh yeah you are so right. thanks for pointing it out.

do u have any suggestions?

Subject: how to calculate volume of a 3D polygon?

From: Jveer

Date: 27 Dec, 2008 09:51:02

Message: 6 of 7


>
> ------------------------------
> Do you have a 3D image, or just a list of (x,y,z) vertex coordinates?

i have the coordinates and the corresponding faces.

Subject: how to calculate volume of a 3D polygon?

From: ImageAnalyst

Date: 27 Dec, 2008 15:32:03

Message: 7 of 7

On Dec 27, 4:51=A0am, "Jveer " <jv...@jveer.com> wrote:
> > ------------------------------
> > Do you have a 3D image, or just a list of (x,y,z) vertex coordinates?
>
> i have the coordinates and the corresponding faces.

---------------------------------------------------------------------------
Jveer:
No I don't. Someone else probably does though. You can try Google.
I just found this:
http://www.niksula.cs.hut.fi/~hkankaan/Homepages/calcvolume.html
If you could somehow convert your vertices and faces to a 3D image
then all you have to do is sum the non-zero coordinates, but poly2mask
only seems to work with 2D polygons.
Good luck. If you find an answer, share it.
ImageAnalyst

Tags for this Thread

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.

rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com