Home > RhinoScript Methods > Surface & Polysurface Methods > SurfaceVolumeMoments
Calculates the volume moments of inertia of closed surface or polysurface objects. For more information, see the Rhino help file for "Mass Properties Calculation Details."
Rhino.SurfaceVolumeMoments (strObject)
strObject |
Required. String. The object's identifier. |
Array |
An array of volume moments of inertia information if successful. The array will contain the following information:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Null |
If not successful, or on error. |
Const rhObjectPolySurface = 16
Dim strObject, arrMP
strObject = Rhino.GetObject("Select a surface", rhObjectPolySurface)
If Rhino.IsPolySurfaceClosed(strObject) Then
arrMP = Rhino.SurfaceVolumeMoments(strObject)
If IsArray(arrMP) Then
Rhino.Print "Volume Moments of Inertia about the World Coordinate Axes: " & Rhino.Pt2Str(arrMP(6), 4)
End If
End If