orbingol / NURBS-Python

Object-oriented pure Python B-Spline and NURBS library
https://onurraufbingol.com/NURBS-Python/
MIT License
636 stars 156 forks source link

BSpline interpolation and approximation boundary conditions #170

Open taoari opened 1 year ago

taoari commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

For BSpline interpolation, there are four pretty standard boundary conditions: clamped, natural, not-a-knot, periodic (https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.make_interp_spline.html).

For curve2d, I see clamped, unclamped, and periodic examples. However, for curve fitting (interpolation and approximation), I see no such examples. Is it possible to achieve interpolation and approximation with different boundary conditions? I am mainly interested in the periodic case, but it is best if there will also be natural and not-a-knot boundary conditions.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected Behavior A clear and concise description of what you expected to happen.

Configuration:

Screenshots (Optional) If applicable, add screenshots to help explain your problem.

Additional Details (Optional) Add any other context about the problem here.