diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-06-13 19:11:57 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-06-13 19:27:32 +0300 |
commit | abb9d0b0ad297bf2e1b58e1cb8be58b9d5470faa (patch) | |
tree | 88311426ec53dd19b6c2335b4123f27513f1a0e8 /extern/curve_fit_nd/curve_fit_nd.h | |
parent | b0985b393ce0335ffbdf5a67bc7cd01d55323ad1 (diff) |
Curve Fitting: add high-quality flag
When this flag is set - even when the curve error is under the threshold,
keep attempting a better fit.
Enable this for freehand drawing, since it gives nicer results and isn't noticeably slower.
Diffstat (limited to 'extern/curve_fit_nd/curve_fit_nd.h')
-rw-r--r-- | extern/curve_fit_nd/curve_fit_nd.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/extern/curve_fit_nd/curve_fit_nd.h b/extern/curve_fit_nd/curve_fit_nd.h index ff6b9513a9b..3649802a425 100644 --- a/extern/curve_fit_nd/curve_fit_nd.h +++ b/extern/curve_fit_nd/curve_fit_nd.h @@ -60,6 +60,7 @@ int curve_fit_cubic_to_points_db( const unsigned int points_len, const unsigned int dims, const double error_threshold, + const unsigned int calc_flag, const unsigned int *corners, unsigned int corners_len, @@ -72,6 +73,7 @@ int curve_fit_cubic_to_points_fl( const unsigned int points_len, const unsigned int dims, const float error_threshold, + const unsigned int calc_flag, const unsigned int *corners, const unsigned int corners_len, @@ -117,6 +119,10 @@ int curve_fit_cubic_to_points_single_fl( float r_handle_r[], float *r_error_sq); +enum { + CURVE_FIT_CALC_HIGH_QUALIY = (1 << 0), +}; + /* curve_fit_corners_detect.c */ /** |