Expand description
§linesweeper: a robust sweep-line algorithm
This rust crate implements a “robust” version of the Bentley-Ottmann sweep-line algorithm, and uses it to provide various two-dimensional geometric primitives like boolean operations on sets. It is currently in a pre-alpha state.
Modules§
- The sweep-line implementation.
- Utilities for computing topological properties of closed polylines.
Structs§
- A two-dimensional point.
- An index into our segment arena.
- A line segment, in sweep-line order.
- An arena of line segments.
Enums§
- Binary operations between sets.
- The input points were faulty.
- A fill rule tells us how to decide whether a point is “inside” a polyline.
Traits§
- A trait for abstracting over the properties we need from numerical types.
Functions§
- Computes a boolean operation between two sets, each of which is described as a collection of closed polylines.