ExtendSurface

Lengthens an untrimmed surface object by a factor value.

Syntax

rhinoscriptsyntax.ExtendSurface (surface_id, parameter, length, smooth=True)

Parameters

Parameters

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.

Returns

Boolean

True or False indicating success or failure.

Example

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)

Also See

IsSurface