Skip to content
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

Inner join #603

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

Inner join #603

wants to merge 9 commits into from

Conversation

raphlinus
Copy link
Contributor

@raphlinus raphlinus commented Jun 6, 2024

This adds inner joins. It's on top of a branch intended to benchmark arcs; the inner join commit disables that so the rendered results should be correct.

There's little optimization. A next step would be to evaluate when the join is inside the adjoining stroke, and draw a simpler version (two lines, from the old contour point to the center to the new) in that case.

This is mostly for the stroke expansion paper, but could be adapted to main.

armansito and others added 9 commits April 19, 2024 22:50
Draw inner join for almost all joins. The exception is when the join angle is tiny. It shouldn't be too hard to add optimizations, especially when it's possible to evaluate that the join is entirely inside one side of the stroke.

It's under an #ifdef, the old code is not changed substantially.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants