Curve Fitting: minor change to re-fitting method
authorCampbell Barton <ideasman42@gmail.com>
Sat, 29 Apr 2017 14:01:16 +0000 (00:01 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 29 Apr 2017 14:01:16 +0000 (00:01 +1000)
commit47769b5f402503d602e532b9c4dfb89173e5fc06
tree8f9555186500fdd56130e1e7fa437c6604b31666
parent6d73e2d3cf3c9a8fa4c73e04d02caecfd716e962
Curve Fitting: minor change to re-fitting method

Avoid calculating a new split-index when re-fitting.

While checking if a knot can be removed, the index with the highest error
can be used as a candidate to replace the knot
(in the case it can't be removed).
extern/curve_fit_nd/curve_fit_nd.h
extern/curve_fit_nd/intern/curve_fit_cubic.c
extern/curve_fit_nd/intern/curve_fit_cubic_refit.c
source/blender/editors/curve/editcurve.c