mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-11 02:30:43 -06:00
* Selection: lasso polygons scan only the edges that cross each row The polygon fill behind Lasso, Polygonal Lasso and Magnetic Lasso tested every edge on every sub-row of the whole document, O(height x 4 x points), on one thread. It now keeps an active edge list over the edges sorted by their top and fills bands of 64 rows in parallel. Crossings use the same formula and spans accumulate in the same sorted order, so the mask is bit identical; a test compares it with the previous fill. * Selection: the lasso fill bands go through par_rows; edges are a named struct