You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fill: inside(X) floods the outside of concave shapes; documented seed is not wired #16
The seed is the centre of the boundary's bounding box, or the nearest free
pixel to it. For the "U" that pixel is in the notch, so bone fills the notch
and leaks out of the top of the canvas, and the inside of the U stays empty.
The docs offer seed: [x, y], but RegionDef.seed is the u32 jitter seed
and flood_fill is always called with None. A related problem: a fill
nested inside union/intersect isn't deferred the way a top-level fill is,
so it can run before its boundary exists and fill the whole canvas. Workaround: the cranium keeps its fill (its centre is inside). The
mandible is concave, so its interior is a path polygon with the same vertices
as its outline. Every fill is top-level.
Found while drawing examples/skull (#13). The repro is checked against main.
Activity