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
[Bug]: agg.path.chunksize leaves gaps in lines at chunk boundaries #32641
With agg.path.chunksize set, a long line is drawn with a gap at every chunk boundary: two segments are missing each time. The docs say the line is split into several lines of at most chunksize vertices, not that points are dropped. The rc docs warn about "minor artifacts", but I would not expect whole segments to go missing.
pixels differing: 961. chunksize_150.png has a visible gap in the zigzag where the line is split.
Expected outcome
No gaps. With round caps and joins and antialiasing off, the chunked line should look the same as
the unchunked one (0 pixels differing).
Additional information
In RendererAgg.draw_path the chunk ends are computed as i1[:-1] = i0[1:] - 1 and used as an exclusive slice end. So vertex i0[k+1] - 1 is in no chunk, and the segments on both sides of it are not drawn. Letting consecutive chunks share their boundary vertex fixes it; I can open a PR.
Activity