JoinSurfacesEx

Joins two or more surface or polysurface object together.

Syntax

Rhino.JoinSurfacesEx (arrObjects [, blnDelete])

Rhino.JoinSurfacesEx (strObject0, strObject1 [, blnDelete])

Parameters

arrObjects

Required.  Array.  An array of strings identifying the surfaces or polysurfaces objects to join. Unlike JoinSurfaces, the array does not have to be ordered.

strObject0

Required.  String.  The first surface or polysurface to join.

strObject1

Required.  String.  The second surface or polysurface to join.

blnDelete

Optional.  Boolean.  Delete input objects after joining.  The default is not to delete objects (False).

Returns

Array

If arrObjects is specified, then the identifiers of the newly created polysurface objects if successful.

String

If strObject0 and strObject1 is specified, then the identifier of the newly created polysurface object if successful.

Null

If not successful, or on error.

Example

Const rhObjectSurface = 8

Dim arrObjects

arrObjects = Rhino.GetObjects("Select surfaces to join", rhObjectSurface)

If UBound(arrObjects) > 0 Then

Rhino.JoinSurfacesEx arrObjects

End If

Also See

ExplodePolysurfaces

IsPolysurface

IsPolysurfaceClosed

IsSurface

IsSurfaceClosed

JoinSurface