Hi,
I’m looking for a way to get the principal moments of inertia and principal axis about the centroid axes of a Brep/Mesh in C# to use in a Grasshopper component.
In Rhino I can use the VolumeMoments command to get this information but I’m not able to find a corresponding API function. There is the VolumeMassProperties class which provides most of the info given by the VolumeMoments command but i can’t see the properties that I need. I the property missing? How could I get the principal axis
Yes, I called Compute() and I do have access to the properties, but as fare as I can see the principal moments and principal axis for volumes are missing. The corresponding calls for areas (AreaMassProperties) features these principle moments as a property but the volume class dose not, does it?
There’s a bunch of Vector3d properties on VolumeMassProperties… however if all of them are something other than what you’re looking for you may have to post a request on the Rhino Developer category.
Hi Ivelin,
thank for checking he documentation but these are the moments listed as ‘Volume Moments of Inertia about Centroid Coordinate Axes’ by the VolumeMoments command I’m looking for the ‘Volume Principal Moments of Inertia about Centroid and Principal Axes’. I think the API is missing this info.