SurfaceArea

Calculates the area of a surface or polysurface object. The results are based on the current drawing units.

Syntax

rhinoscriptsyntax.SurfaceArea (object_id)

rhinoscript.surface.SurfaceArea (object_id)

Parameters

object_id

Required.  String or Guid.  The object's identifier.

Returns

List

A list of area information if successful.  The list will contain the following information:

Element

Type

Description

0

Number

The area.

1

Number

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

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select a surface", rs.filter.surface)

if obj:

    massprop = rs.SurfaceArea( obj )

    if massprop:

        print "The surface area is: ", massprop[0]

Also See

SurfaceAreaCentroid

SurfaceAreaMoments