3

I have a file holding a lot of points in R3 that approximately forms a knot. I know basic programming in Python and C++, but I am not sure how I would go about writing a program that could approximate a curve for a set of points. Could anyone suggest any libraries or methods I could use to do this?

1 Answer 1

1

Take a look at the Curves library.

It's header only if you plan to use it in C++.

From the documentation, it gives tools to:

create exact splines of arbitrary order (that pass exactly by an arbitrary number waypoints)

Example code from the PDF documentation (sorry I had to screenshot as the PDF breaks copy/paste):

enter image description here

1
  • 1
    From the description, I don't get that this library would approximate or do a fitting. Do you have some example code on how to implement such a fitting? Commented Feb 25, 2021 at 23:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.