Skip to main content

map_tile_toolkit/
lib.rs

1#![doc = include_str!("../README.md")]
2
3mod error;
4pub use error::TileError;
5
6mod tile;
7pub use tile::TileId;
8
9mod vertex;
10pub use vertex::{Measured, PolyVertex, Vertex};
11
12// Low-level per-tile polyline clipping used by the slicer.
13mod clip_polyline;
14
15// Exact integer geometry predicates (orientation, point-in-ring) shared across clipping and polygons.
16mod geom;
17pub use geom::signed_area_2x;
18
19// Low-level per-tile polygon-ring clipping (keep-original with synthetic clip-boundary corners).
20mod clip_polygon;
21
22// Whether a tile's piece is planar outside its box (the check behind valid polygon pieces).
23mod planar;
24
25// The stateless tile geometry under the slicer: tile boxes and the lazy per-segment tile walk.
26mod grid;
27
28// Lazy polygon slicing: the row-by-row scanline behind `Slicer::polygon`.
29mod polygon;
30pub use polygon::{FillRun, PolygonPiece, PolygonSlice, PolygonSlices};
31
32mod slicer;
33pub use slicer::{
34    ClipMode, LineSlice, LineSlices, Local, LocalIter, PointSlice, PointSlices, Slicer, TileLines,
35};
36
37mod mosaic;
38pub use mosaic::{Mosaic, PolygonMosaic};