mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 13:32:45 -05:00
Every boundary loop of a hatch went into one even-odd area, which is right for the normal island style (group 75 = 0) only. With the outer style (1) the area inside an outermost loop and outside the islands directly in it is hatched, and islands inside islands are not; with the ignore style (2) only the outermost loops are, and islands leave no holes. This applies to solid, gradient and pattern hatches. A loop counts as inside another when its bounds lie within the other's, its area is smaller, and most of up to 16 points taken just inside it lie inside the other loop. Each loop is measured around its own center, so loops far from the origin, or far from each other, keep their precision. A hatch whose nesting test would take more than 10,000,000 steps is filled as if every loop were a boundary, with a warning.