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
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?
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.
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.