Calculates the volume centroid of a mesh object.
Rhino.MeshVolumeCentroid (strObject)
strObject |
Required. String. The identifier of a mesh object. |
Array |
A 3-D point identifying the volume centroid if successful. |
Null |
If not successful, or on error. |
Const rhObjectMesh = 32
Dim strObject
strObject = Rhino.GetObject("Select mesh", rhObjectMesh )
Rhino.AddPoint Rhino.MeshVolumeCentroid(strObject)