# how can i calculate the volume of my 3d triangular mesh model (surface based mesh)

This topic is 2852 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

how can i compute the volume of my 3d triangular mesh model (surface based mesh)...

and how can i compute the volume of triangle...

but when i implemented...I got some difference...

the width , height and depth of my rectangle is

width = 120.9
height = 63.6656
Depth = 39.87

so the total volume should be w*h*d = 306898
but with volume of triangle I found is 249042 .

how can i find exact volume through triangle volume.
may be i need to compute voxels but how ?

thanks

##### Share on other sites
Well, I don't know, but some notes about the terms you use:

triangles don't have volumes. "Tetrahedron":s have volumes.

by vowels (the a,e,i,o,u sounds) you mean "voxel":s

##### Share on other sites
oh i need to edit.. thanks for pointing mistake :)

##### Share on other sites
Well, there's an idea, but I haven't though it through.

For every triangles: connect the three vertices with the origin (0,0,0 of your coordinate system), that will be a tetrahedron. Calculate its volume. This has to be a signed volume: if the origin is at the back side of the triangle (if it's CCW) then it's positive; if the origin is on the front side then it's negative. Sum these volumes to get the volume of the whole mesh.

##### Share on other sites
Or maybe the volume of the tetrahedron is signed anyway, if you calculate it using vector algebra (which you should).

##### Share on other sites
I guess that would work for a convex mesh..

##### Share on other sites
Quote:
 Original post by NanookI guess that would work for a convex mesh..

I think not, if you use SIGNED (+/-) volumes for the tetrahedrons. Just like in 2D.

##### Share on other sites
Adding up the signed volumes works just fine.

##### Share on other sites
ya i am also guessing this method could be apply in convex mesh but what about cancave like Teapot...torus...?

##### Share on other sites
Quote:
 Original post by alvaroAdding up the signed volumes works just fine.

1. 1
2. 2
Rutin
24
3. 3
4. 4
JoeJ
18
5. 5

• 14
• 28
• 11
• 11
• 9
• ### Forum Statistics

• Total Topics
631772
• Total Posts
3002260
×