I want to calculate the moment of inertia of the convex hull that surrounds points in a 3D space. Assuming, of course, that the mass and/or the density of the volume are known. I've seen theconvhull function and the code byMichael Kleder to calculate the hull's volume and centroid, but how can I get the inertia matrix/tensor?
Additionally, I've ported the C code byBrian Mirtich into matlab, but it requires that the vertices of the faces to be ordered in a counterclock-wise direction. Is there a way to be independent form the clockwise or counterclock-wise faces?
Here is a link to a function on FEX that computes inertia tensors of objects represented by triangular surface meshes: https://www.mathworks.com/matlabcentral/fileexchange/48913-compute-exact-rigid-body-parameters-of-objects-represented-by-triangular-surface-meshes