MeshParameterDensity

Modifies the density of meshes generated with a set of mesh parameters. This is equivalent to moving the slider in Rhino's simple mesh generation dialog box.

Syntax

Rhino.MeshParameterDensity (arrMeshParameters, dblDensity)

Parameters

arrMeshParameters

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

dblDensity

Required.  Number.  A number between 0.0 (quickly creates coarse meshes) and 1.0 (creates accurate meshes but takes lots of time).

Returns

Array

The modified mesh parameters if successful.

Null

If not successful, or on error.

Example

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

If IsArray(arrObjects) Then

  arrMP = Rhino.MeshParameters

  arrNewMP = Rhino.MeshParameterDensity(arrMP, 1.0)

  Rhino.MeshObjects arrObjects, -1, arrNewMP

End If

Also See

MeshParameters

MeshObjects