CurveArea

Returns that area of closed planar curves. The results are based on the current drawing units.

Syntax

rhinocsriptsyntax.CurveArea( object_id )

rhinocsript.curve.CurveArea( object_id )

Parameters

object_id

Required.  String or Guid.  The identifier of a closed, planar curve object.

Returns

List

Area information if successful.  The list will contain the following information:

Element

Type

Description

0

Number

The area. If more than one curve was specified, the value will be the cumulative area.

1

Number

The absolute (+/-) error bound for the area.

None

If not successful, or on error.

Example

import rhinocsriptsyntax as rs

id = rs.GetObject("Select a curve", rs.filter.curve)

if id:

    props = rs.CurveArea(id)

    if props:

        print "The curve area is:", props[0]

Also See

IsCurve

IsCurveClosed

IsCurvePlanar