# Mesh Volume Calculator

**URL:** https://forum.highend3d.com/t/mesh-volume-calculator/1590
**Category:** Maya
**Tags:** mel
**Created:** [March 28, 2008, 8:59am UTC](https://forum.highend3d.com/t/mesh-volume-calculator/1590 "2008-03-28T08:59:47Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![maccollo](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@maccollo](https://forum.highend3d.com/u/maccollo)
#### Post date: [March 28, 2008, 8:59am UTC](https://forum.highend3d.com/t/mesh-volume-calculator/1590/1 "2008-03-28T08:59:47Z")

</div>

Ok, so I need to calculate the volume of a complicated, closed polygonal mesh, such as a human body. I actually found a script that worked with maya 8.5, aswell as 2008 when I tried it. However, as retarded as I was I forgot to save it and now I've been searching for like 2 hours without any luck ![]()

---

<div class="post-metadata">

### Author: ![ewerybody](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/e/bcef8e/32.png) [@ewerybody](https://forum.highend3d.com/u/ewerybody)
#### Post date: [March 28, 2008, 9:34am UTC](https://forum.highend3d.com/t/mesh-volume-calculator/1590/2 "2008-03-28T09:34:17Z")

</div>

computePolysetVolume ?

maya \> f1 \> Developer Resources \> MEL Commands \> in the "By substring(s)"-field type "volu" \> you got it

---

<div class="post-metadata">

### Author: ![maccollo](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@maccollo](https://forum.highend3d.com/u/maccollo)
#### Post date: [March 28, 2008, 10:00am UTC](https://forum.highend3d.com/t/mesh-volume-calculator/1590/3 "2008-03-28T10:00:16Z")

</div>

Ah that solved everything. Thanks alot^^

---

<div class="post-metadata">

### Author: ![maccollo](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@maccollo](https://forum.highend3d.com/u/maccollo)
#### Post date: [March 28, 2008, 12:03pm UTC](https://forum.highend3d.com/t/mesh-volume-calculator/1590/4 "2008-03-28T12:03:02Z")

</div>

Just a quick question, just how accurate is this script? Can it run into problems when trying to calculate really complicated meshes ?

---

<div class="post-metadata">

### Author: ![joojaa](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/j/5daacb/32.png) [@joojaa](https://forum.highend3d.com/u/joojaa)
#### Post date: [March 28, 2008, 1:54pm UTC](https://forum.highend3d.com/t/mesh-volume-calculator/1590/5 "2008-03-28T13:54:27Z")

</div>

I dont see why it wouldn't be numerically accurate. Offcourse within rounding limits. But yes theres allways a possibility for problems. But the algorithm is quote straightforward so i dont really see that happening.

---

<div class="post-metadata">

### Author: ![toast--2](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/t/5f9b8f/32.png) [@toast--2](https://forum.highend3d.com/u/toast--2)
#### Post date: [July 8, 2008, 3:45am UTC](https://forum.highend3d.com/t/mesh-volume-calculator/1590/6 "2008-07-08T03:45:39Z")

</div>

bump.

Is there a command to calculate the surface area of a polygon face?

---

<div class="post-metadata">

### Author: ![joojaa](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/j/5daacb/32.png) [@joojaa](https://forum.highend3d.com/u/joojaa)
#### Post date: [July 8, 2008, 10:03am UTC](https://forum.highend3d.com/t/mesh-volume-calculator/1590/7 "2008-07-08T10:03:46Z")

</div>

even if there isnt its pretty easy to calculate, just triangulate it and calculate weeach triangles area wich is

mag(cross(point2-point1,point3-point1))/2

---

<div class="post-metadata">

### Author: ![rgkovach](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/r/13edae/32.png) [@rgkovach](https://forum.highend3d.com/u/rgkovach)
#### Post date: [July 8, 2008, 11:57pm UTC](https://forum.highend3d.com/t/mesh-volume-calculator/1590/8 "2008-07-08T23:57:52Z")

</div>

polyEvaluate -area;  
returns the surface area of the object's faces in local space as a float.

---

<div class="post-metadata">

### Author: ![toast--2](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/t/5f9b8f/32.png) [@toast--2](https://forum.highend3d.com/u/toast--2)
#### Post date: [July 9, 2008, 12:06am UTC](https://forum.highend3d.com/t/mesh-volume-calculator/1590/9 "2008-07-09T00:06:12Z")

</div>

Awesome. Everyday you learn something new with Maya.
