polyops 0.1.1

Fast Martinez-Rueda polygon clipping: Boolean operations (intersection, union, difference, xor) on polygons and multipolygons over GeoJSON-shaped coordinates. Pure-Rust port of martinez-polygon-clipping.
1
2
3
4
5
6
7
8
9
10
11
12
//! Classification of segment edges, mirroring upstream `src/edge_type.ts`.

#![allow(dead_code)]

/// How a sweep-event segment behaves relative to the result polygon.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub(crate) enum EdgeType {
    Normal,
    NonContributing,
    SameTransition,
    DifferentTransition,
}