#computational-geometry #geometry #stability #robustness #math

no-std robust

Robust adaptive floating-point predicates for computational geometry

9 releases (2 stable)

1.1.0 May 25, 2023
1.0.0 Mar 27, 2023
0.2.3 Jan 3, 2021
0.2.2 Aug 19, 2020
0.1.2 Jan 21, 2020

#41 in Algorithms

Download history 50369/week @ 2024-07-19 60815/week @ 2024-07-26 56564/week @ 2024-08-02 61990/week @ 2024-08-09 58694/week @ 2024-08-16 67453/week @ 2024-08-23 66031/week @ 2024-08-30 66856/week @ 2024-09-06 62647/week @ 2024-09-13 73037/week @ 2024-09-20 68854/week @ 2024-09-27 61634/week @ 2024-10-04 62685/week @ 2024-10-11 71516/week @ 2024-10-18 67719/week @ 2024-10-25 72297/week @ 2024-11-01

285,522 downloads per month
Used in 291 crates (15 directly)

MIT/Apache

480KB
2.5K SLoC

robust

Adaptive Precision Floating-Point Arithmetic and Fast Robust Predicates for Computational Geometry

See the Interactive notebook for more.

API Documentation

Visuals

Below are visualizations comparing naive and robust predicate implementations. To learn how these images were generated and how to interpret them, see examples/predicate-map/.

Naive Robust
incircle
orient2d

Source

These algorithms are ported from predicates.c, the canonical implementation of Jonathan Richard Shewchuk's "Robust adaptive floating-point geometric predicates".

Papers

Shewchuk, J.R., 1997. Adaptive precision floating-point arithmetic and fast robust geometric predicates. Discrete & Computational Geometry, 18(3), pp.305-363.

Shewchuk, J.R., 1996, May. Robust adaptive floating-point geometric predicates. In Proceedings of the twelfth annual symposium on Computational geometry (pp. 141-150).

License

Licensed under either of

at your option.

Dependencies