#clip #boolean #polygon #clipper #clipper2

sys clipper2c-sys

Exposing unsafe FFI for Clipper2 library for Rust

5 releases

0.1.4 Jul 30, 2024
0.1.3 Jul 1, 2024
0.1.2 Jun 1, 2024
0.1.1 May 29, 2024
0.1.0 Apr 28, 2024

#1821 in Algorithms

Download history 234/week @ 2024-07-01 2/week @ 2024-07-08 162/week @ 2024-07-29 2/week @ 2024-08-05 9/week @ 2024-08-12 7/week @ 2024-08-26 4/week @ 2024-09-16 14/week @ 2024-09-23 3/week @ 2024-09-30 35/week @ 2024-10-07 17/week @ 2024-10-14

69 downloads per month
Used in clipper2

MIT/Apache

1MB
30K SLoC

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

Contains (ELF exe/lib, 16KB) CMakeDetermineCompilerABI_CXX.bin, (ELF exe/lib, 16KB) CMakeDetermineCompilerABI_C.bin

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. 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