#clip #polygon #boolean #clipper #clipper2

sys clipper2c-sys

Exposing unsafe FFI for Clipper2 library for Rust

1 unstable release

new 0.1.0 Apr 28, 2024

#2013 in Algorithms

Download history 143/week @ 2024-04-27

143 downloads per month
Used in clipper2

MIT/Apache

1MB
28K SLoC

C++ 10K SLoC // 0.1% comments Pascal 9K SLoC // 0.1% comments C# 8K SLoC // 0.1% comments Rust 1K SLoC // 0.0% comments Visual Studio Solution 439 SLoC Visual Studio Project 185 SLoC Bitbake 36 SLoC

clipper2c-sys

crate.io docs.rs

Exposing unsafe FFI functions from the Clipper2 library for Rust.

NOTE: This crate is primarily intended to be used by the high level crate clipper2 crate. If you just want to use Clipper2 from Rust that is probably the crate that you should try instead.

The create is a Rust wrapper around the C++ version of Clipper2 with the help of the clipper2c-sys C wrapper.

Compile with cargo feature generate-bindings to generate bindings at build time.

Early days

This project is in a super early stage. Expect breaking changes now and then.

Please also feel free to come with suggestions on how the API can be simplified or send code contributions directly. See CONTRIBUTING.md for more details.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Serde by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies