Calculates the area centroid of a mesh object.
rhinoscriptsyntax.MeshAreaCentroid (object_id)
rhinoscript.mesh.MeshAreaCentroid (object_id)
object_id |
Required. String or Guid. The identifier of a mesh object. |
Point3d |
A 3-D point identifying the area centroid if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select mesh", rs.filter.mesh )
rs.AddPoint( rs.MeshAreaCentroid(obj) )