Files
cadcraft/crates/render
2ez4gcxandClaude Opus 5.5 9b9bf90230 render: mark the display list truncated when a fill stops at the fill cap (#3636)
triangulate_evenodd stops once its triangles pass 6,000,000 points (or
returns none past 200,000 edges) without telling the caller, so a fill
drawn in part left DisplayList::truncated false.

- fill: triangulate_evenodd_whole also says whether the triangles cover
  the whole region. The cap check moves to before the next slab that adds
  triangles, so the triangles are unchanged and a region whose last slab
  passes the cap counts as whole. triangulate_evenodd keeps its signature.
- Builder::region_tris marks the list truncated when a region is not
  whole; hatch fills and backgrounds, MLINE fills, Prim::Fill and WIPEOUT
  go through it.
- PolyClip keeps whether its region triangles are whole. A fill crossing
  the outline of a capped region is cut against the triangles there are,
  so it is drawn too little and never past the outline; may_leave_out
  says when that can happen and clip_prim marks the list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 03:56:22 +07:00
..