Curve Fitting: offset based fallback to calculate cubics
authorCampbell Barton <ideasman42@gmail.com>
Sun, 12 Jun 2016 12:25:43 +0000 (22:25 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 12 Jun 2016 12:25:43 +0000 (22:25 +1000)
commit2033f47e55b50150d305b4115ef12efaeca23b8c
tree7844332c5f16135e898ed1d36acba8cc725f31dd
parent66b12ef4ab943024115645ea1f5118acd672f55d
Curve Fitting: offset based fallback to calculate cubics

Add a new fallback method that uses offset distance from the curve to the line between both points,
for freehand drawing it typically only fives minor improvements (1-3% fewer points),
for curve dissolve the improvements are more noticeable.
extern/curve_fit_nd/intern/curve_fit_cubic.c
extern/curve_fit_nd/intern/curve_fit_inline.h