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

Offseting with this library ? #15

Open
brunnerant opened this issue Dec 13, 2024 · 1 comment
Open

Offseting with this library ? #15

brunnerant opened this issue Dec 13, 2024 · 1 comment

Comments

@brunnerant
Copy link

Hello!

I was wondering if it would be possible to implement polygon offseting using this library ? Would it work to offset the polygons the naive way, and then union them with an empty polygon to resolve self-intersections ?

This library looks promising and if it had offseting capabilities I would definitely use it for my projects !!

@NailxSharipov
Copy link
Member

Hi!

Yes, it will work. It can be done simpler, no need to union and second polygon.
Just look at how simlify works.
You only need to think which FillRule to apply - positive or negative - depending on the order of your polygon points.

I am planning to add this feature. I am very busy right now. I will be able to do it in 2-3 months

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

No branches or pull requests

2 participants