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

Freehand strokes min_distance_hitbox should take into acount the curvature of the stroke. #61

Open
zarstensen opened this issue Aug 7, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@zarstensen
Copy link
Owner

Currently, the freehand strokes tries to limit the amount of capsule shapes for its hitbox by having a minimum required distance / size of a capsule, before a new one should be generated. The issue with this is that very curvy parts of the stroke will not have enough capsule shapes to represent it, whereas straight parts have way too many capsule shapes to represent what is essentially just a straight line.
It would instead be better to multiply this minimum distance by the curvature of the stroke and use this as the actual minimum distance between points.

@zarstensen zarstensen added the enhancement New feature or request label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant