Expand description
Robust geometric primitives
This is an implementation of the geometric primitives that are required by
Fornjot and not already provided by robust. They are auto-transpiled and
then manually modified.
Original source (public domain): http://www.cs.cmu.edu/~quake/robust.html
The following tools were used for translation to Rust:
- Clang: https://clang.llvm.org/
- Bear: https://github.com/rizsotto/Bear
- C2Rust: https://c2rust.com/
The following steps are used to translate original C code to Rust:
- Prepare a C file that contains the functions you want to translate.
- Create compile commands file:
bear -- clang -c predicates.c - Transpile C code to Rust:
c2rust transpile compile_commands.json - Copy code from transpiled file here.
Functions
Test a point’s orientation against a plane