IsBrep

Verifies an object is a Brep, or a boundary representation model, object.

Syntax

rhinoscriptsyntax.IsBrep (object_id)

rhinoscript.surface.IsBrep (object_id)

Parameters

object_id

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

Returns

Boolean

True if successful, otherwise False.

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select a Brep")

if rs.IsBrep(obj):

    print "The object is a Brep."

else:

    print "The object is not a Brep."

Also See

IsPolysurface

IsPolysurfaceClosed

IsPolysurfacePlanar

IsSurface