• Create Account

We need 7 developers from Canada and 18 more from Australia to help us complete a research survey.

Support our site by taking a quick sponsored survey and win a chance at a \$50 Amazon gift card. Click here to get started!

# joohooo

Member Since 28 Nov 2012
Offline Last Active Dec 04 2012 10:03 AM

### Compute volume from mesh Mathematical demonstration

29 November 2012 - 02:14 AM

Hi,

I start a new topic from an older because I have a tiebreaker !
the older topic : http://www.gamedev.n...ume-for-a-mesh/

My question is: How can we prove the formula V= sum(each tetrahedron volume with the origin)
[source lang="cpp"]float volume = 0;int* index = I;for (i = 0; i < T; i++){ Vector3 v0 = V[*index++]; Vector3 v1 = V[*index++]; Vector3 v2 = V[*index++]; volume += Dot(v0,Cross(v1,v2));}volume /= 6;[/source]

I know I must use 3D integrals and Fourier moments but I don't know how I can do that !
Please someone give me some clues about a possible math proof ?

PS: I already try to find this formula with the gauss theorem as said in the older topic but I never find the result but an approximate result! I obtain the formuma here but with some addition in more...

PARTNERS