Skip to content

Render copper polygons with cutout-only regions - #145

Merged
ShiboSoftwareDev merged 1 commit into
mainfrom
fix/render-polygons-with-cutouts
Sep 7, 2026
Merged

Render copper polygons with cutout-only regions#145
ShiboSoftwareDev merged 1 commit into
mainfrom
fix/render-polygons-with-cutouts

Conversation

@ShiboSoftwareDev

@ShiboSoftwareDev ShiboSoftwareDev commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • keep a polygon definition visibly filled when its only associated regions are POLYGON_CUTOUT records
  • reserve polygon-fill suppression for polygons that have actual poured-copper region records
  • add an SVG regression covering an unpoured copper polygon with a transparent cutout

This fixes the renderer behavior exposed by the CH582 round-trip fixture: the converted document contains the polygon boundary plus cutout regions, but no poured-copper regions, so the boundary still represents the visible copper area.

Verification

  • bun test tests/svg/copper-polygon-cutout.test.ts tests/svg/copper-polygon-outline.test.ts
  • bun run typecheck
  • bun run format:check
  • bun run build
  • full bun test was also run; tests that do not require the gitignored references/ files pass, while reference-backed tests report their missing local fixtures

@vercel

vercel Bot commented Sep 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
altiumts Error Error Sep 6, 2026 11:24pm UTC

Request Review

@ShiboSoftwareDev
ShiboSoftwareDev merged commit c9080b7 into main Sep 7, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants