# mohan-bee - Anyone can help me with a solution... Channel: #contributor Source: https://discord.com/channels/1233487248129921135/1524173171870273718 Started: 2026-07-07T22:00:02.424000+00:00 Last activity: 2026-07-09T04:49:32.215000+00:00 ## mohan-bee — 2026-07-07T22:00:01.942000+00:00 Anyone can help me with a solution for this issue , "edge cutouts are being emitted as separate" That is fine for cutouts fully inside the board, but wrong when the cutout touches the board edge. A circle on the edge becomes a full circle in Gerber, so the outside half makes the board look bigger. https://github.com/tscircuit/circuit-json-to-gerber/pull/118 ## Seve — 2026-07-07T22:06:09.635000+00:00 i would work w/ ai on this- in particular try to get a version of the GERBER that renders properly- don't worry about the implementation- then afterwards figure out how to generate the gerber properly ## mohan-bee — 2026-07-08T20:51:54.940000+00:00 <@757706909351411845> what do you think about using this package, "https://github.com/mfogel/polygon-clipping" To fix the cutout in kicad, we need to subtract the cutout shapes from the board outline,.. turning them into one clean, unified outline.. but this is actually doing. a great job: check this PR: https://github.com/tscircuit/circuit-json-to-kicad/pull/365 maybe this can help in gerber too ig . ## Seve — 2026-07-08T21:01:26.645000+00:00 why not use flattenjs, is this one smaller ## mohan-bee — 2026-07-09T03:53:29.629000+00:00 <@757706909351411845> actually this one is having much smaller bundle size, idk is this a right way to confirm , https://bundlephobia.com/package/polygon-clipping@0.15.7 https://bundlephobia.com/package/@flatten-js/core@1.6.12 ## Sapphire — 2026-07-09T03:53:31.111000+00:00 <:warning:892823499205406760> Please avoid using excessive mentions, as it creates unnecessary notifications and disrupts others — use mentions only when truly needed to keep the discussion focused and respectful; repeated misuse may lead to moderation action. ## Seve — 2026-07-09T03:56:33.772000+00:00 Its fine- we just already bundle and use flattenjs, but i think its fine to use polygon clipping ## mohan-bee — 2026-07-09T04:49:32.215000+00:00 https://github.com/tscircuit/circuit-json-to-kicad/pull/365