You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
@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
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.
The text was updated successfully, but these errors were encountered: