Splits up a mesh object into its unconnected pieces.
Rhino.SplitDisjointMesh (strObject [, blnDelete])
strObject |
Required. String. The identifier of a mesh object. |
blnDelete |
Optional. Boolean. Delete the input object. The default is not to delete the input object (False). |
Array |
An array of strings identifying the newly created mesh objects if successful. |
Null |
If not successful, or on error. |
Const rhObjectMesh = 32
Dim strObject
strObject = Rhino.GetObject("Select mesh", rhObjectMesh)
If Rhino.DisjointMeshCount(strObject) > 0 Then
Rhino.SplitDisjointMesh strObject
End If