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

#211 in Math

Download history 1157/week @ 2024-01-13 1376/week @ 2024-01-20 1269/week @ 2024-01-27 1241/week @ 2024-02-03 1667/week @ 2024-02-10 1430/week @ 2024-02-17 1769/week @ 2024-02-24 2193/week @ 2024-03-02 2110/week @ 2024-03-09 2479/week @ 2024-03-16 2471/week @ 2024-03-23 1718/week @ 2024-03-30 1557/week @ 2024-04-06 1613/week @ 2024-04-13 1590/week @ 2024-04-20 1841/week @ 2024-04-27

6,853 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

~785KB
~18K SLoC