MeshArea

Returns the approximate area of one or more mesh objects.

Syntax

rhinoscriptsyntax.MeshArea (object_ids)

rhinoscript.mesh.MeshArea (object_ids)

Parameters

object_ids

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

Returns

Tuple

A tuple containing three numbers if successful.  The three elements of the array are as follows:

Element

Type

Description

0

Number

The number of meshes used in the area calculation.

1

Number

The total area of all meshes.

2

Number

The error estimate.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

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

if obj:

    area_rc = rs.MeshArea(obj)

    if area_rc: print "Mesh area:", area_rc[1]

Also See

MeshVolume