Make Geom2d_BSplineCurve longer

Hello. I have some 2d bspline and I need to make it longer to a certain parameter value (for example, extend the start to -8, with a StartParameter value of 0). I tried to use the "Segment" method, but when it works, an exception occurs when executing InsertKnots if you specify parameters outside the curve boundary range.

Dmitrii Pasukhin's picture

Hello,

Segment can use out of range peaces only in case of periodic.

To extend the BSpline, you need to add "Pole". You can use "InsertPoleAfter" or "InsertPoleBefore" methods.

One of the most not recommended options (but still can be used) - rebuild new BSpline using list of points by Geom2dAPI_PointsToBSpline

Best regards, Dmitrii.