IsSurface

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

Syntax

Rhino.IsSurface (strObject)

Parameters

strObject

Required.  String.  The object's identifier.

Returns

Boolean

True if successful, otherwise False.

Null

On error.

Example

Dim strObject

strObject = Rhino.GetObject("Select a surface")

If Rhino.IsSurface(strObject) Then

Rhino.Print "The object is a surface."

Else

Rhino.Print "The object is not a surface."

End If

Also See

IsPointOnSurface

IsSurfaceClosed

IsSurfacePeroidic

IsSurfacePlanar

IsSurfaceSingular

IsSurfaceTrimmed