Bug + a question:
For some reason the method Curve.CreateInterpolatedCurve doesn’t respect start and end tangents. Looks like a bug to me.
I can use NurbsCurve.CreateHSpline as a workaround though (but I can’t set the curve degree on create).
Q: How do I set the curve degree after the curve is created?
Edit >>>: It also seems that the command “
(curve_degree);” doesn’t do it’s thing (curvature analysis shows that the curve doesn’t change).
I’m on Rhino 7.5.21082.11001, 2021-03-23
// OK - Respects tangents: var helix_curve = NurbsCurve.CreateHSpline(interpolate_points, tangent_s, tangent_e); // Not OK - Does not respects tangents: var helix_curve_2 = Curve.CreateInterpolatedCurve( interpolate_points, curve_degree, CurveKnotStyle.Uniform, tangent_s, tangent_e);