Returns that area centroid of closed, planar curves. The results are based on the current drawing units.
rhinoscriptsyntax.CurveAreaCentroid ( object_id )
rhinoscript.curve.CurveAreaCentroid ( object_id )
object_id |
Required. String or Guid. The identifier of a closed, planar curve object. |
Tuple |
Area centroid information if successful. The list will contain the following information:
|
|||||||||
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
id = rs.GetObject("Select a curve", rs.filter.curve)
if id:
props = rs.CurveAreaCentroid(id)
if props:
print "The curve area centroid is:", props[0]