Skip to content
New issue

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

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

Already on GitHub? # to your account

Path Direction Issue #14

Open
ekaratzaferis opened this issue Oct 30, 2020 · 0 comments
Open

Path Direction Issue #14

ekaratzaferis opened this issue Oct 30, 2020 · 0 comments

Comments

@ekaratzaferis
Copy link

Hey,

We have been using the "web" version of this library in our application, and now we're trying to achieve the same functionality by using this package, but the generated path is different.

Here's an example where we feed a simple ring shape to both versions:

Screenshot 2020-10-30 at 13 09 20
This package generates a path that consists of two circles, both with a counter-clockwise direction.

Screenshot 2020-10-30 at 13 09 30
On the other hand, the web version produces these circles, but one of them has a clockwise direction.

Based on some research, the difference in the direction of the paths is what creates the "cutout" shapes that we want, and that's what the "web" version produces.

Any ideas on how to fix this?

The configuration we're using is:
turnPolicy: 'minority', turdSize: 3, optCurve: true, alphaMax: 1, optTolerance: 2

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant