You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rust low-level FFI bindings to [`SFCGAL`](https://sfcgal.gitlab.io/SFCGAL/)1.5.x C API.
7
+
Rust low-level FFI bindings to [`SFCGAL`](https://sfcgal.gitlab.io/SFCGAL/)2.0.x C API.
8
8
Don't use this crate directly, prefer it's higher-level wrapper : [sfcgal-rs](https://github.com/mthh/sfcgal-rs).
9
9
10
10
> [!IMPORTANT]
11
-
> Note that the required version of SFCGAL is currently 1.5.x (latest version - 2023-10-30).
12
-
> If you want to use SFCCAL 1.4.x, you can use the 0.6.x version of this crate / of [sfcgal-rs](https://github.com/mthh/sfcgal-rs).
11
+
> Note that the required version of SFCGAL is currently 2.0.x (latest version - 2024-10-10).
12
+
> If you want to use SFCCAL 1.5.x, you can use the 0.7.x version of this crate / of [sfcgal-rs](https://github.com/mthh/sfcgal-rs).
13
13
14
14
## Internals
15
15
@@ -19,7 +19,7 @@ Then bindgen is run to generate these low-levels bindings.
19
19
20
20
In addition to all the `sfcgal_` types and functions, this crate expose :
21
21
- a Rust `initialize` function: it calls `sfcgal_init()` function then it calls a custom `w_sfcgal_init_handlers()` function which replace the error and warning handlers from `printf` to a char buffer. That `initialize` function internally uses `std::sync::Once` to ensure it's only called once.
22
-
- two C functions `w_sfcgal_get_last_error` and `w_sfcgal_get_last_warning` which repectively reads the buffer containing the error message and the buffer containing the warning message.
22
+
- two C functions `w_sfcgal_get_last_error` and `w_sfcgal_get_last_warning` which respectively reads the buffer containing the error message and the buffer containing the warning message.
23
23
24
24
In the future it could probably be improved by not requiring SFCGAL to be installed as a system library.
0 commit comments