IsPlaneSurface

Verifies an object is a plane surface. Plane surfaces can be created by the Plane command. Note, a plane surface is not a planar NURBS surface.

Syntax

rhinoscriptsyntax.IsPlaneSurface(object_id)

rhinoscript.surface.IsPlaneSurface(object_id)

Parameters

object_id

Required.  String or Guid.  The identifier of the object to verify.

Returns

Boolean

True or False indicating success or failure.

None

On error.

Example

import rhinoscriptsyntax as rs

surface = rs.GetObject("Select surface to trim", rs.filter.surface)

if surface and rs.IsPlaneSurface(surface):

    print "got a plane surface"

else:

    print "not a plane surface"

Also See

IsBrep

IsPolysurface

IsSurface