I can pass up to 26 points, but after that I get an error that only mentions

Code: Select all

`geomCurve.setPoles(Points)`

Thanks

I've been working with the example here: http://www.freecadweb.org/wiki/index.ph ... zier_curve

I can pass up to 26 points, but after that I get an error that only mentions
What I'm trying to do is convert a long list of X-Y points to a curve (with the curve passing through, or very close to, the points). The list that I'm working with has about 40 points in it. First question is, am I going about this the right way by using a Bezier curve? If so, what's the best way to work around being limited to 26 points with BezierCurve.setPoles?

Thanks

I can pass up to 26 points, but after that I get an error that only mentions

Code: Select all

`geomCurve.setPoles(Points)`

Thanks

You should consider using a BSpline or a piecewise Bezier curve. Using a single Bezier segment with a degree of 26 is usually not intended.

A bezier curve does not pass through a control points (poles). You should consider using the functions to create either an approximation or an interpolation curve.

A bezier curve does not pass through a control points (poles). You should consider using the functions to create either an approximation or an interpolation curve.

Great, thank you. Using the BSpline is working out much better.

FYI, under Detailed Description it is said that the maximum degree is limited 25 (i.e. 26 poles).

Ok, I didn't find that in my search. Thanks.wmayer wrote:FYI, under Detailed Description it is said that the maximum degree is limited 25 (i.e. 26 poles).