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 polyline with multiple offsets #19

Open
WindingWinter opened this issue Jan 6, 2022 · 5 comments
Open

Support polyline with multiple offsets #19

WindingWinter opened this issue Jan 6, 2022 · 5 comments

Comments

@WindingWinter
Copy link

I posted this question at the C++ issue tracker-- I'm not sure whether this or that place is the right place to post. Anyway feel free to close the one that is not relevant.

The question is this: Is there any plan to support variable offsets? Something like NetTopologySuite VariableBuffer. Currently only uniform offset can be done throughout all the vertexes on the polylines.

@jbuckmccready
Copy link
Owner

I think the algorithm used by this library would not work with variable offset distance because distance checks are used to remove invalid/collapsed offset parts (global invalid segments), I am not sure what that means when comparing distances between two variable offset distance segments - it would definitely have to be modified to get it to work. There may be other modifications required to make the raw offset join/trim code work as well.

I currently have no plan to to work on variable offsets, but pull requests/contributions are welcome if the algorithm is implemented and working.

@WindingWinter
Copy link
Author

WindingWinter commented Jan 7, 2022 via email

@jbuckmccready
Copy link
Owner

I don't have any ideas offhand - I think it would require a fairly deep dive into it.

@FishOrBear
Copy link

Maybe something like this?
image

@WindingWinter
Copy link
Author

WindingWinter commented Oct 11, 2022 via email

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

3 participants