Module fj_math::robust

source ·
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:

The following steps are used to translate original C code to Rust:

  1. Prepare a C file that contains the functions you want to translate.
  2. Create compile commands file: bear -- clang -c predicates.c
  3. Transpile C code to Rust: c2rust transpile compile_commands.json
  4. Copy code from transpiled file here.

Functions

Test a point’s orientation against a plane