mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-27 03:27:21 -06:00
The mesh sampler took each pixel's colour at its corner, and only when the corner was strictly inside a triangle. A corner on an edge two triangles share belonged to neither, so a Type 4-7 shading drew a white seam along every shared edge that ran through the sample grid, and dropped pixels along the mesh's own sides (a 30 x 30 square cut along its diagonal: 812 of 900 pixels; MuPDF 900). Such a pixel now goes to the triangle that covers its centre, edges included (Triangle::covers), and still takes the colour at its corner, so every pixel that was drawn keeps its colour. Vendored hayro-interpret patch 41. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RUNQSPVXx3dDBabRZHAnjz