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

Support for non-rounded joins #1

Open
robhawkes opened this issue Mar 24, 2016 · 1 comment
Open

Support for non-rounded joins #1

robhawkes opened this issue Mar 24, 2016 · 1 comment

Comments

@robhawkes
Copy link

Thanks for putting together a simple library for polygon offsetting – it's a massive headache finding something that isn't part of a larger library!

Are you considering adding support for non-rounded joins, like mitre and bevel joins?

I ask because in the my use-case I don't need the added vertex / point complexity that results from generating rounded joins, as if you need to triangulate the resulting polygon then the number of triangles is multiplied by quite a lot to account for the 'fans' at the corners.

There seems to be a gap for a lightweight offsetting library that can handle the key offsetting operations and the base join and cap types.

I'd look at contributing this myself but from a quick glance at the code-base it's built around the rounded-corner algorithm and I don't want to mess that up by shoe-horning in a naive approach to non-rounded joins.

@w8r
Copy link
Owner

w8r commented Jul 27, 2016

@robhawkes thanks and check out the new version - old one was actually nasty))
Unfortunately, I didn't figure out yet how to control the joins, I was really going for the easiest approach. I will look into that if I decide to do this algorithm properly

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