Returns the approximate area of one or more mesh objects.
rhinoscriptsyntax.MeshArea (object_ids)
rhinoscript.mesh.MeshArea (object_ids)
object_ids |
Required. String or Guids. The object's identifier. |
Tuple |
A tuple containing three numbers if successful. The three elements of the array are as follows:
|
||||||||||||
None |
If not successful, or on error. |
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]