Curve.Split Method

Hey there,
is there any possibilty in the Rhino SDK to split multiple curves, so one can get the curve segments?

1

I know how to do this with Rhino commands and Grasshopper, but not when developing a Rhino Plug-In using the Rhino Common API.

All the best!

Hi.

You can spilt a curve with an array of parameters on that curve
https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Curve_Split_4.htm

To get those parameters you can find curve curve intersections with:
https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Intersect_Intersection_CurveCurve.htm

Does that help?

1 Like

@Willem thanks a lot for your advice!
Yes, it does work! (Even though it seemed a little bit cumbersome at first glance)

Iā€™m curious if the same principle will still work when I am switching to a 3D grid structure (intersecting splitting surfaces) :wink:

:+1:t2:

For splitting surfaces you would use
https://developer.rhino3d.com/api/RhinoCommon/html/Overload_Rhino_Geometry_Brep_Split.htm

Where you can directly use other breps to split.

1 Like