IsSurface

Verifies an object is surface.  Brep objects with only one face are also considered surfaces.

Syntax

rhinoscriptsyntax.IsSurface (objectId)

rhinoscript.surface.IsSurface (objectId)

Parameters

objectId

Required.  Guid.  The object's identifier.

Returns

Boolean

True if successful, otherwise False.

Example

import rhinoscriptsyntax as rs

objectId = rs.GetObject("Select a surface")

if rs.IsSurface(objectId):

    print "The object is a surface."

else:

    print "The object is not a surface."

Also See

IsPointOnSurface

IsSurfaceClosed

IsSurfacePeroidic

IsSurfacePlanar

IsSurfaceSingular

IsSurfaceTrimmed