IsSurfacePlanar

Verifies a surface object is planar.

Syntax

rhinoscriptsyntax.IsSurfacePlanar (surface_id, tolerance=None)

rhinoscript.surface.IsSurfacePlanar (surface_id, tolerance=None)

Parameters

surface_id

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

tolerance

Optional. Number. A tolerance to use when checking. The default is to use Rhino's current absolute tolerance.

Returns

Boolean

True if successful, otherwise False.

None

On error.

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select a surface", rs.filter.surface)

if rs.IsSurfacePlanar(obj):

    print "The surface is planar."

else:

    print "The surface is not planar."

Also See

IsSurface

IsSurfaceClosed

IsSurfacePeroidic

IsSurfaceSingular

IsSurfaceTrimmed