Fortran library for line and surface interpolation

Indeed, managing opaque pointers while wrapping C++ to Fortran is quite painful. Typically, you will only need a small subset of functions from a library, so it can be done in a few days once you get the hang of it. There are some resources in this thread.

The library looks nice and feature complete. Probably you would have to interface with the auto-generated C++ interface, and do a lot of cross-checking directly with the source to make sure you get the interface right.

At least from the documentation it seems like you would have to do it manually. According to this page by repeating some knots and control points you can get a closed curve. On the other hand bspline-fortran might lack some of the tools you need like evaluating derivatives, tangent and normal vectors, finding intersections points, etc.

1 Like