MeshAreaCentroid

Calculates the area centroid of a mesh object.

Syntax

rhinoscriptsyntax.MeshAreaCentroid (object_id)

rhinoscript.mesh.MeshAreaCentroid (object_id)

Parameters

object_id

Required.  String or Guid.  The identifier of a mesh object.

Returns

Point3d

A 3-D point identifying the area centroid if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select mesh", rs.filter.mesh )

rs.AddPoint( rs.MeshAreaCentroid(obj) )

Also See

IsMesh

MeshArea

MeshVolume

MeshVolumeCentroid