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.
rhinoscriptsyntax.ExplodeCurves (curve_ids, delete_imput=False)
rhinoscript.curve.ExplodeCurves (curve_ids, delete_imput=False)
curve_ids |
Required. String, Guid, or list of Strings or Guid. The identifier of the curve object(s) to explode. |
delete_input |
Optional. Boolean. Delete input objects after exploding. The default is not to delete objects (False). |
List |
A list of Guids identifying the newly created curve objects if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
crv = rs.GetObject("Select curve to explode", rs.filter.curve)
if rs.IsCurve(crv): rs.ExplodeCurves(crv)