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

#157 in Math

Download history 2459/week @ 2024-03-14 2511/week @ 2024-03-21 2081/week @ 2024-03-28 1470/week @ 2024-04-04 1791/week @ 2024-04-11 1348/week @ 2024-04-18 2077/week @ 2024-04-25 2055/week @ 2024-05-02 1404/week @ 2024-05-09 1961/week @ 2024-05-16 1963/week @ 2024-05-23 1827/week @ 2024-05-30 1564/week @ 2024-06-06 2572/week @ 2024-06-13 1991/week @ 2024-06-20 1497/week @ 2024-06-27

7,811 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

~1MB
~18K SLoC