How does Rhino calculate the volume centroid?

Hi,

I’m having problems calculating the position of a mesh on a software i’m building. I posted a question on stackoverflow detailing my method here, but in short I compute the barycenter of all the triangles of the mesh.

I’ve been thinking and testing and analyzing everything for a few days now, and my last hope of sanity is to understand how rhino is calculating the centroid of a 3D mesh

@GregArden - dunno if you can help here…

-Pascal

I found the answer to my question.

Answer is in the original thread posted above if you are interested.