-
Notifications
You must be signed in to change notification settings - Fork 19
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
API (and C FFI) for Multi Polyline Offset #34
Comments
Any guess for when this might be done? I'm currently working on integrating this library into a Mac application (FWIW, I'm using the C FFI from Objective-C). I'd prefer to avoid duplication of effort if it's close to being ready; but if it's not then I'll just hack something together. |
I haven't started or done anything for the C FFI, feel free to add them and make a PR. I wont be able to get to this anytime soon. |
Ugh... finally got a chance finish this (came down with carpel tunnel in both hands, couldn't type - I'm a bit better now, but I still need to get the surgery done to fix it). Anyways.... OK, I think I did this right... at least, it's working on my machine. I'm NOT a Rust programmer so there's probably better ways to accomplish this, but... it is working for me. Nonetheless you should probably have a look at the PR before accepting it. |
Hey, thanks for the PR! I reviewed it, link to PR for reference here. |
Add C FFI wrapper function for the multi polyline offset algorithm (currently in Rust the
Shape::parallel_offset
method).The way that the multi polyline offset is implemented requires spatial indexes for all the polylines and the bounding boxes of the polylines which will require a little more involved C FFI wrapper or a more simplistic wrapper which has to rebuild the indexes.
Current questions I'm mulling over:
The text was updated successfully, but these errors were encountered: