If Rhino.IsSurface(strSourceObject) Then
arrCenterOfSourceObject = Rhino.SurfaceAreaCentroid(strSourceObject)
ElseIf Rhino.IsPolysurface(strSourceObject) Then
arrCenterOfSourceObject = Rhino.SurfaceAreaCentroid(strSourceObject)
ElseIf Rhino.IsCurve(strSourceObject) Then
arrCenterOfSourceObject = Rhino.CurveMidPoint(strSourceObject)
ElseIf Rhino.IsMesh(strSourceObject) Then
arrCenterOfSourceObject = Rhino.MeshAreaCentroid(strSourceObject)
Else
rhino.print “Source Object must be a Curve, Surface, Polysurface or Mesh.”
Exit Sub
End If
CurveMidPoint, return value documented as an array. But the array is somehow different than those returned by the various Centroid methods?