Explodes, or un-joins, one more curve objects. Polycurves will be exploded into curve segments. Polylines will be exploded into line segments. ExplodeCurves will return the curves in topological order.
Rhino.ExplodeCurves (strObject [, blnDelete [, blnReturnSingles]])
Rhino.ExplodeCurves (arrObjects [, blnDelete [, blnReturnSingles]])
strObject |
Required. String. The identifier of the curve object to explode. |
arrObjects |
Required. Array. An array of strings identifying the curve objects to explode. |
blnDelete |
Optional. Boolean. Delete input objects after exploding. The default is not to delete objects (False). |
blnReturnSingles |
Optional. Boolean. If False (Default) and the curve is not explodable, then the curve object's identifier is not added to the returned array. If True and the curve is not explodable, then the curve object's identifier is returned. That is, the identifiers of non-explodable curves will round trip. |
Array |
An array of strings identifying the newly created curve objects if successful. |
Null |
If not successful, or on error. |
Const rhObjectCurve = 4
Dim strObject
strObject = Rhino.GetObject("Select curve to explode", rhObjectCurve)
If Rhino.IsCurve(strObject) Then
Rhino.ExplodeCurves strObject
End If