IsSurfaceClosed

Verifies a surface object is closed in the specified direction.  If the surface fully encloses a volume, it is considered a solid.

Syntax

rhinoscriptsyntax.IsSurfaceClosed (surface_id, direction)

rhinoscript.surface.IsSurfaceClosed (surface_id, direction)

Parameters

surface_id

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

direction

Required.  Number.  The direction, either 0 = U, or 1 = V.

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

    print "The surface is closed in the U direction."

else:

    print "The surface is not closed in the U direction."

Also See

IsSurface

IsSurfacePeroidic

IsSurfacePlanar

IsSurfaceSingular

IsSurfaceTrimmed