IsSurfaceSingular

Verifies a surface object is singular in the specified direction.  Surfaces are considered singular if a side collapses to a point.

Syntax

rhinoscriptsyntax.IsSurfaceSingular (surface_id, direction)

rhinoscript.surface.IsSurfaceSingular (surface_id, direction)

Parameters

surface_id

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

direction

Required.  Number.  The direction, either 0 = south, 1 = east, 2 = north, or 3 = west.

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.IsSurfaceSingular(obj, 0):

    print "The surface is singular."

else:

    print "The surface is not singular."

Also See

IsSurface

IsSurfaceClosed

IsSurfacePeroidic

IsSurfacePlanar

IsSurfaceTrimmed