DiscussionsIssue archiveModeling Data and Algorithms

Archived discussion

Make Geom2d_BSplineCurve longer

Modeling Data and AlgorithmsMon, 05/05/2025 - 19:461 reply

Browse this forum
QuestionAuthor

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.

Discussion

1 archived reply

Posts are displayed in their archived order.

01Commenter-1

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, Commenter-1.