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
computePolysetVolume ?
maya > f1 > Developer Resources > MEL Commands > in the "By substring(s)"-field type "volu" > you got it
Ah that solved everything. Thanks alot^^
Just a quick question, just how accurate is this script? Can it run into problems when trying to calculate really complicated meshes ?
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.
bump.
Is there a command to calculate the surface area of a polygon face?
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
polyEvaluate -area;
returns the surface area of the object's faces in local space as a float.
Awesome. Everyday you learn something new with Maya.