mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-07 03:01:55 +00:00
Review fix from #6087. tess_3d charged one element per triangle, but each triangle also holds its normal-slot corners and one corner triple per texture set any face of the mesh uses, up to eight. Faces reusing one index range could so allocate well past the 128 MiB the element ceiling documents. Each face's triangles are now charged in 8-byte elements for everything they hold (corners, normal slots, texture triples, style) before the face is triangulated. Tests, each shown failing with the fix reverted: reused_textured_faces_are_charged_for_every_corner_array, faces_reusing_one_index_range_are_charged_for_each_triangle_they_make. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SqmHYx8FiWM5PcsoiErgp9