Calculates the area moments of inertia of a surface or polysurface object. For more information, see the Rhino help file for "Mass Properties Calculation Details."
rhinoscriptsyntax.SurfaceAreaMoments (surface_id)
rhinoscript.surface.SurfaceAreaMoments (surface_id)
surfacet_id |
Required. String or Guid. The object's identifier. |
Tuple |
A tuple of area moments of inertia information if successful. The list will contain the following information:
|
|||||||||||||||||||||||||||||||||||||||||||||
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select a surface", rs.filter.surface)
if obj:
massprop= rs.SurfaceAreaMoments(obj)
if massprop:
print "Area Moments of Inertia about the World Coordinate Axes: ", massprop[6]