#boolean #polygon #clip #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

#1947 in Algorithms

26 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