34 releases (17 breaking)

0.18.0 Nov 8, 2022
0.17.1 Nov 20, 2020
0.17.0 Jul 30, 2020
0.15.0 Sep 12, 2019
0.6.0 Jun 15, 2017

#196 in Math

Download history 2860/week @ 2024-11-16 2461/week @ 2024-11-23 2414/week @ 2024-11-30 3020/week @ 2024-12-07 3313/week @ 2024-12-14 2296/week @ 2024-12-21 1656/week @ 2024-12-28 3692/week @ 2025-01-04 3104/week @ 2025-01-11 3767/week @ 2025-01-18 3153/week @ 2025-01-25 4631/week @ 2025-02-01 3544/week @ 2025-02-08 4188/week @ 2025-02-15 4932/week @ 2025-02-22 3310/week @ 2025-03-01

17,054 downloads per month
Used in 7 crates (3 directly)

MPL-2.0 license

45KB
927 lines

plane-split

Build Status Documentation

Plane splitting with euclid, made for WebRender.


lib.rs:

Plane splitting.

Uses euclid for the math basis. Introduces new geometrical primitives and associated logic.

Automatically splits a given set of 4-point polygons into sub-polygons that don't intersect each other. This is useful for WebRender, to sort the resulting sub-polygons by depth and avoid transparency blending issues.

Dependencies

~795KB
~18K SLoC