Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Reenable flattened node offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
mawildoer committed Oct 25, 2024
1 parent f4ce5f8 commit cba8494
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/faebryk/exporters/schematic/kicad/transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -976,14 +976,13 @@ def _check(tx: Tx) -> bool:

mils_to_mm = Tx(a=0.0254, b=0, c=0, d=0.0254, dx=0, dy=0)

# if node.flattened:
# # Create the transformation matrix for the placement of the parts
# # in the node.
# tx = node.tx * sheet_tx * mils_to_mm
# else:
# flattened_bbox = node.internal_bbox()
# tx = skidl_sch.calc_sheet_tx(flattened_bbox) * mils_to_mm
tx = node.tx * mils_to_mm
if node.flattened:
# Create the transformation matrix for the placement of the parts
# in the node.
tx = node.tx * sheet_tx * mils_to_mm
else:
flattened_bbox = node.internal_bbox()
tx = skidl_sch.calc_sheet_tx(flattened_bbox) * mils_to_mm

# TODO: Put flattened node into heirarchical block

Expand Down

0 comments on commit cba8494

Please sign in to comment.