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

Add maxSegmentLength option #16

Open
2 tasks
luucvanderzee opened this issue Jul 17, 2019 · 0 comments
Open
2 tasks

Add maxSegmentLength option #16

luucvanderzee opened this issue Jul 17, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@luucvanderzee
Copy link
Collaborator

luucvanderzee commented Jul 17, 2019

flubber has this maxSegmentLength option, which will add points to line segments until all line segments satisfy whatever number was passed to maxSegmentLength. So if you have a triangle where one side is 15 pixels long, and maxSegmentLength is 10, one extra point will be added to it in the middle. The result is a more smooth transition. The lower maxSegmentLength, the smoother the transition, but also the higher the performance penalty for adding more points.

We should:

  • Implement our own maxSegmentLength option
  • Decide what value we want to set this to by default, if we think this is desirable default behavior (if not, the default value can be infinity)
@luucvanderzee luucvanderzee added the enhancement New feature or request label Jul 17, 2019
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

No branches or pull requests

1 participant