I’m not getting the same calculation results on my script that uses Rhino.SurfaceAreaMoments and Analyze > Mass Properties > Area Moments. I need the moments of inertia about the centroid coordinate axes. I’ve calculated the moments of inertia by hand and I’m sure that my code result is wrong haha. Does anyone see what I’m missing?
My code looks like this:
surfaces = Rhino.SelectedObjects
If IsArray(surfaces) Then
For Each surface In surfaces
inertias = Rhino.SurfaceAreaMoments(surface)
If IsArray(inertias) Then
Rhino.Print Rhino.Pt2Str(inertias(10), 0)
End If
Next
End If
I’ve attached a Rhino file with the surfaces and a pdf with my calculation. The text is in Dutch but the numbers and calculations are clear.
Not my area of expertice, but I’d like to comment that if you can post an example file and your calculations
It’s much easier for others to give meaningfull feedback.
you can attache files to your post with this button:
Third option would be to calculate individual area moments, areas and centroids, and then combine for the composite moment using the appropriate algebraic formula.