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.
Rhino.MeshParameterDensity (arrMeshParameters, dblDensity)
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). |
Array |
The modified mesh parameters if successful. |
Null |
If not successful, or on error. |
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