pcb2gcode / pcb2gcode

Command-line tool for isolation, routing and drilling of PCBs
GNU General Public License v3.0
399 stars 98 forks source link

Feature request - simple centreline mirroring #682

Open MechanicalCat opened 10 months ago

MechanicalCat commented 10 months ago

Would be great if --mirror-axis could take arg center or similar, to automatically mirror the board around the centre of its cutting-out extremities when producing the front ngc's. Obviously this makes sense only for rectangular (or at least symmetric) boards. But rectangle PCBs make up the majority of prototyping work and - on my CNC at least - the back of the board is milled and then cut-out of a large sheet. This cut-out PCB is then x-flipped and vacuumed back down into the space it just came out of, ready to mill the front. Using spacers, the edges of the hole it came out of can be used to exactly re-align the PCB after flipping. Meaning no need to re-touch-off if the mirroring is done about the centreline of the board. I can sort-of emulate this by putting the origin-point in the middle of the PCB. But then touching-off becomes a pain because it's not at the corner of the board. Cheers. And many thanks for pcb2gcode - I couldn't use KiCad without it.