Curve Derivatives

Screen%20Shot%20075

1 Like

Hey,
cool python def, but ?, I don’t see how this can be implemented? what libraries, (rs), rs.curveDerivatives, ders?

my own, I do have an own Bezier library in Python and more complex one in C#. But I don’t like to share it for a couple of reasons. The computation of the derivatives is one of the most basic things you have to do if you dive into Bezier/Nurbs computation.
The provided code is just the piece responsible for the frame. You should rather read it as pseudocode.
Rhinocommon and Grasshopper provide you with all that. Same as the computation of the frames. So if you like to use libraries use Rhinocommon and you are done.

okay having trouble because rs.evaluatecurve doesn’t return a tangent line like it does in Rhino.

https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Curve_TangentAt.htm