skuep / kicad-plugins

[Outdated] KiCad-Plugins
11 stars 1 forks source link

Change in creating the via paths #2

Open skuep opened 7 years ago

skuep commented 7 years ago

Currently, all tracks are stored as separate tracks and given to the pyclipper offsetting library. The problem with this is, that in order to get smooth transitions (for example at 90 degree corners), we need to use the half circle edge caps. However cutting open the polygon into via paths is now more complicated. I suggest that from the tracks exported by KiCad, a tree (of connected tracks) is regenerated and then given to the algorithm. Now flat caps can be used which are very easy to handle when cutting open the polygon.

skuep commented 7 years ago

What about loops?

skuep commented 7 years ago

https://stackoverflow.com/questions/10301000/python-connected-components