← Back to community index
# contributor·Active

mohan-bee - Anyone can help me with a solution...

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

Started by mohan-beeJul 7, 20268 messages

Discussion

Last active 5 days ago · plain text
mohan-beeoriginal post
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
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
<@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
why not use flattenjs, is this one smaller
mohan-bee
<@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
<: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
Its fine- we just already bundle and use flattenjs, but i think its fine to use polygon clipping
mohan-bee
https://github.com/tscircuit/circuit-json-to-kicad/pull/365

Want to add to the conversation?

Reply in Discord so your notes stay connected to the source.
Continue in Discord ↗