I just wanted to ask, how does the BSplineCurve function work?
I tried to set up a Wire to extrude it to 3D with the following code:

test = BSplineCurve([Pnt(0,0,0),Pnt(1,0,0),Pnt(1,0.5,0)], Degree)
seg1 = Segment(Pnt(0,0,0),Pnt(1,0.5,0))
#test2 = Wire([test,seg1])
test2 = test+seg1
#t = Face(test2)
#test3 = t.Extrude(5*Z)

It works fine if Degree is equal to 1, but if I take Degree equal to 2 my Spline Curve gets shorter and the endpoints of the Curve are not my prescribed points.
Taking more points or another degree, does not change this behaviour.


Hi Tim,

you have to duplicate initial and end points, according to the degree of the spline

best, Joachim

1 Like

or use BezierCurve as in this example.

I will take a look at it. Thank you. :slight_smile: