Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the early stopping in _twin_spline_decompose
Take the right half of the spline as another standard when finding the optimal t. Because if the right half of the spline is also within the tolerance, the right half of the spline will be the last curve segment. Thus, in this case, there is no need to find better t, which aims to prevent more line segments from being generated in the future. I have modified the implementation of font-edit to use fixed-point arithmetic and used it as the evaluation testbed to do experiments as follows: original - Average number of _de_casteljau calls per point: 1.99 original - Average points per character: 18.89 flexibly update - Average number of _de_casteljau calls per point: 4.53 flexibly update - Average points per character: 16.30 flexibly update (early stopping)- Average number of _de_casteljau calls per point: 4.23 flexibly update (early stopping)- Average points per character: 16.18
- Loading branch information