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."
Rhino.SurfaceAreaMoments (strObject [, intFaceIndex])
strObject |
Required. String. The object's identifier. |
intFaceIndex |
Optional. Number. If the object is a polysurface, then the index of the face to query. |
Array |
An array of area moments of inertia information if successful. The array will contain the following information:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Null |
If not successful, or on error. |
Const rhObjectSurface = 8
Dim strObject, arrMP
strObject = Rhino.GetObject("Select a surface", rhObjectSurface)
If Not IsNull(strObject) Then
arrMP = Rhino.SurfaceAreaMoments(strObject)
If IsArray(arrMP) Then
Rhino.Print "Area Moments of Inertia about the World Coordinate Axes: " & Rhino.Pt2Str(arrMP(6), 4)
End If
End If