Calculates the area of a surface or polysurface object. The results are based on the current drawing units.
rhinoscriptsyntax.SurfaceArea (object_id)
rhinoscript.surface.SurfaceArea (object_id)
object_id |
Required. String or Guid. The object's identifier. |
List |
A list of area information if successful. The list will contain the following information:
|
|||||||||
None |
If not successful, or on error. |
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]