DuplicateSurfaceBorder

Creates a curve that duplicates a surface or polysurface border.

Syntax

rhinoscriptsyntax.DuplicateSurfaceBorder (surface_id, type=0)

rhinoscript.surface.DuplicateSurfaceBorder (surface_id, type=0)

Parameters

surface_id

Required.  String or Guid.  The identifier of the surface or polysurface object.

type

Optional. Number. The border curves to return. The possible values are

Value

Description

0

Both exterior and interior border curves.

1

Exterior border curves

2

Interior border curves.

Returns

List

A list of Guids identifying the new curve objects if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

surface = rs.GetObject("Select surface or polysurface", rs.filter.surface | rs.filter.polysurface)

if surface: rs.DuplicateSurfaceBorder( surface )

Also See

DuplicateEdgeCurves

DuplicateMeshBorder