Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!news.glorb.com!news2!postnews.google.com!n10g2000yqm.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to calculate volume of a 3D polygon?
Date: Sat, 27 Dec 2008 07:32:03 -0800 (PST)
Organization: http://groups.google.com
Lines: 16
Message-ID: <bcfb970a-162e-45e7-89d1-bc8b897711d9@n10g2000yqm.googlegroups.com>
References: <gj18cl$rve$1@fred.mathworks.com> <20ab415a-371f-4d7b-b3b2-2a866f13faa8@z27g2000prd.googlegroups.com> 
	<gj4tq6$qnr$1@fred.mathworks.com>
NNTP-Posting-Host: 75.186.70.56
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1230391923 22910 127.0.0.1 (27 Dec 2008 15:32:03 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sat, 27 Dec 2008 15:32:03 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: n10g2000yqm.googlegroups.com; posting-host=75.186.70.56; 
	posting-account=0rLUzAkAAABojYSRC64DkTbtiSCX77HH
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET 
	CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 
	3.5.21022),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:508894


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