1
0
Fork 0
Commit graph

2 commits

Author SHA1 Message Date
Jonathan Haas
7bb1f8cf3d [core] chore: Minor improvements for the bezier reduce function (#257)
- Give up early if the curve is empty (or otherwise malformed, i.e. if it contains NaN points), instead of iterating endlessly
- Limit the iterations to 20 as the comment says
- Don't go above 1 for the t values

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/257
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-18 06:23:03 +00:00
Jonathan Haas
5672638bf9 [core] feat: Hotfix the reduce function in the bezier library (#224)
Fixes #117

Co-authored-by: joostdecock <joost@joost.at>
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/224
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-12 07:48:39 +00:00