Verifies a surface object is singular in the specified direction. Surfaces are considered singular if a side collapses to a point.
rhinoscriptsyntax.IsSurfaceSingular (surface_id, direction)
rhinoscript.surface.IsSurfaceSingular (surface_id, direction)
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. |
Boolean |
True if successful, otherwise False. |
None |
On error. |
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."