MeshObjects

Creates mesh objects from surface, polysurface, and extrusion objects. Blocks that contain surface, polysurface, and extrusion objects can also be meshes.

Syntax

Rhino.MeshObjects (arrObjects [, intStyle [, arrMeshParameters]])

Rhino.MeshObjects (strObject [, intStyle [, arrMeshParameters]])

Parameters

arrObjects

Required. Array. An array of strings identifying the objects to mesh.

strObject

Required. String. The identifier of the object to mesh.

intStyle

Optional.  Number.  The user interface style.

Value

Description

-1

No user interface.

0 (Default)

Simple dialog box.

1

Detailed dialog box.

2

Command line, or scriptable, interface.

arrMeshParameters

Optional.  Array.  The parameters to use during meshing. See MeshParameters for more information. If omitted, then the document's current render mesh parameters are used.

Returns

Array

If arrObjects was specified, then the identifiers of the new mesh objects if successful.

String

If strObject was specified, then the identifier of the new mesh object if successful.

Null

If not successful, or on error.

Example

arrObjects = Rhino.GetObjects("Select objects to mesh")

If IsArray(arrObjects) Then

  arrMP = Rhino.MeshParameters(0)

  Rhino.MeshObjects arrObjects, -1, arrMP

End If

Also See

IsMesh

IsPolysurface

IsSurface

MeshParameters