MakeSurfacePeriodic

Makes an existing surface a periodic NURBS surface.

Syntax

rhinoscriptsyntax.MakeSurfacePeriodic (surface_id, direction, delete_input=False)

rhinoscript.surface.MakeSurfacePeriodic (surface_id, direction, delete_input=False)

Parameters

surface_id

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

direction

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

delete_inut

Optional.  Boolean.  Delete input surface.  If omitted, the input surface will not be deleted (False).

Returns

Guid

If delete_input is False, the identifier of the new object if successful.

Guid

If delete_input is True, the identifier of the modified object if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

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

if not rs.IsSurfacePeriodic(obj, 0):

    rs.MakeSurfacePeriodic(obj, 0)

Also See

IsSurfacePeriodic

MakeSurfaceNonPeriodic