mirror of
https://github.com/storytold/cadcraft.git
synced 2026-12-01 18:25:32 -06:00
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>