Skip to content

Add Copper Pour Export#264

Open
mohan-bee wants to merge 12 commits intotscircuit:mainfrom
mohan-bee:feat-coppper-pour
Open

Add Copper Pour Export#264
mohan-bee wants to merge 12 commits intotscircuit:mainfrom
mohan-bee:feat-coppper-pour

Conversation

@mohan-bee
Copy link
Copy Markdown
Contributor

@mohan-bee mohan-bee commented Apr 30, 2026

Motivation: Copper pours are a core PCB feature, so the exporter should preserve them in the output.

What Changed: Copper pours are now emitted with correct geometry (rect, polygon, BRep), mapped to the right net, and use clear default fill settings.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 30, 2026

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

Project Deployment Actions Updated (UTC)
circuit-json-to-kicad Ready Ready Preview, Comment May 8, 2026 3:59am

Request Review

@mohan-bee mohan-bee marked this pull request as ready for review April 30, 2026 11:05
Copy link
Copy Markdown
Contributor

@seveibar seveibar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no snapshot test how do we know this works?

@seveibar
Copy link
Copy Markdown
Contributor

seveibar commented May 7, 2026

you need a stacked tscircuit/kicad png

Copy link
Copy Markdown
Member

@techmannih techmannih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also you need to add the kicad file which snapshots which you are converting from cj-> kicad

@techmannih
Copy link
Copy Markdown
Member

Yep you need to convert that into kicad also I'm curious about to see the kicad file

Comment thread lib/pcb/stages/AddCopperPoursStage.ts Outdated
const kicadLayer = getKicadLayer(pour.layer)

const zone = new Zone()
zone.rawChildren = [
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should not exist, remove rawChildren from zones in kicadts and make sure it supports all these properties natively

Copy link
Copy Markdown
Contributor

@seveibar seveibar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comment, also not that you clearly did not import the copper pour correctly based on the snapshot

This reverts commit a7fcde2.
Copy link
Copy Markdown
Contributor

@seveibar seveibar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no valid test
image

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.

3 participants