8000 lottie: ensure proper shape closure by mgrudzinska · Pull Request #3560 · thorvg/thorvg · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

lottie: ensure proper shape closure #3560

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

lottie: ensure proper shape closure #3560

wants to merge 1 commit into from

Conversation

mgrudzinska
Copy link
Collaborator

Ensured proper closure of star and polygon shapes. The start and end points now match - in cases with degenerate bezier curves, the second-to-last point is also aligned.
Proper shape closure is necessary for modifiers like offset (future pucker bloat). If the start and end points aren’t equal (within the comparison function’s precision), the shape will be closed with a straight line - and during offsetting, that line will become visible, even though it’s not intended.

Ensured proper closure of star and polygon shapes.
The start and end points now match - in cases with
degenerate bezier curves, the second-to-last point
is also aligned.
Proper shape closure is necessary for modifiers like
offset (future pucker bloat). If the start and end
points aren’t equal (within the comparison function’s
precision), the shape will be closed with a straight
line - and during offsetting, that line will become
visible, even though it’s not intended.
@mgrudzinska mgrudzinska self-assigned this Jun 19, 2025
@mgrudzinska mgrudzinska added the lottie Lottie animation label Jun 19, 2025
@mgrudzinska mgrudzinska requested a review from hermet June 19, 2025 11:06
@hermet hermet added enhancement Improve features refactoring Code refactoring / Exceptional handles and removed enhancement Improve features labels Jun 20, 2025
@hermet hermet closed this Jun 20, 2025
@hermet
Copy link
Member
hermet commented Jun 20, 2025

2679880

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lottie Lottie animation refactoring Code refactoring / Exceptional handles
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0