Lengthens an untrimmed surface object by a factor value.
rhinoscriptsyntax.ExtendSurface (surface_id, parameter, length, smooth=True)
surface_id |
Required. String or Guid. The object's identifier. |
parameter |
Required. Tuple of two numbers containing the U,V parameter of the surface to evaluate. The surface edge that is closest to the U,V parameter will be the edge that is extended. |
length |
Required. Number. The amount to extend the surface. |
smooth |
Optional. Boolean. If True (Default), the surface is extended smoothly curving from the edge. If False, the surface is extended in a straight line from the edge. |
Boolean |
True or False indicating success or failure. |
import rhinoscriptsyntax as rs
pick = rs.GetObjectEx("Select surface to extend", rs.filter.surface)
if pick:
parameter = rs.SurfaceClosestPoint(pick[0], pick[3])
rs.ExtendSurface(pick[0], parameter, 5.0)