Extracts the render mesh from an object. Surfaces, polysurfaces, meshes, block references, and extrusions can contain render meshes. Note, if the object does not have a render mesh, one will be generated automatically.
Rhino.ExtractRenderMesh (strObject)
Rhino.ExtractRenderMesh (arrObjects)
strObject |
Required. String. The identifier of the object from which to extract the mesh. |
arrObjects |
Required. Array. An array of strings identifying the objects from which to extract the meshes. |
String |
If strObject was specified, the identifier of the newly created mesh object if successful. |
Array |
If arrObjects was specified, an array of strings identifying the newly created mesh objects if successful. |
Null |
If not successful, or on error. |
Const rhSurface = 8
Const rhPolysrf = 16
Const rhMesh = 32
Const rhBlock = 4096
Const rhExtrusion = 1073741824
Dim strObject, intFlags
intFlags = rhSurface + rhPolysrf + rhMesh + rhBlock + rhExtrusion
strObject = Rhino.GetObject("Select object to extract analysis mesh", intFlags)
If Not IsNull(strObject) Then
Rhino.ExtractRenderMesh strObject
End If