jbuckmccready / cavalier_contours

2D polyline/shape library for offsetting, combining, etc.
Apache License 2.0
151 stars 13 forks source link

API (and C FFI) for Multi Polyline Offset #34

Open jbuckmccready opened 1 year ago

jbuckmccready commented 1 year ago

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:

bdurbrow commented 8 months ago

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.

jbuckmccready commented 8 months ago

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.