How to get a sub-curve using RhinoCommon?

How do I extract a sub-curve from a curve in Rhinocommon using two curve parameters or length values? While RhinoScriptSyntax offers an AddSubCrv method, I’d prefer to create a sub-curve object directly (not creating “real” curve to get a sub-curve).

Hello,
how about the Trim method?

Curve_Trim.gh (11.1 KB)

https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.curve/trim?version=8.x

1 Like

Oh, of course thank you!

1 Like