[KC1]: Merge API, Board and BoardSketch #16
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Initially this seemed like the right idea, and there would be a 1 to 1 relationship with a KiConnect Project and its KiCAD board. Turned out there is just a lot of noise cause by this separation.
BoardSketchmakes called to theAPIwhich is turn makes additional calls toBoard, creating a mess. The relationship betweenBoardandBoardSketchisn't as bad but there is a significant 'mental overhead' caused by much of this relationship. Most functionality should be merged, anything related to geometry conversion needs to be separated into a new class type, GeometryConverter (ie; KiCADGeometryConverter, ...).Because this is a bit sprawling issue tag [KC1] will be used in comments to point out code that will be part of this merge.
Example:
Board.sync_fromjust callsBoardSketch.sync_fromBoardSketchhas nosync_to, instead it's done inBoard.sync_to