From 3d84cb48227217a6a480f5021f67fb798f6015a9 Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 6 Oct 2023 14:01:21 +0200 Subject: Add mesh direction indicator to footprints --- footprint_generator.py | 19 +++++++++++++++++++ mesh_footprints.tar.xz | Bin 106300 -> 109984 bytes 2 files changed, 19 insertions(+) diff --git a/footprint_generator.py b/footprint_generator.py index 731f6e8..af98d41 100755 --- a/footprint_generator.py +++ b/footprint_generator.py @@ -44,6 +44,25 @@ def generate_footprints(output_dir, trace_width, clearance, conductors): layer='F.Cu', fill=footprints.Atom.solid) for i in range(2*conductors)], + lines=[footprints.Line(footprints.XYCoord(pitch/2 + trace/2 + 0.25 + x1, y1), + footprints.XYCoord(pitch/2 + trace/2 + 0.25 + x2, y2), + 'F.Fab', + stroke=footprints.Stroke(width=0.25)) + for x1, y1, x2, y2 in [ + (0, pitch * (conductors - 0.5) + trace/2 - 0.25/2, + 0, pitch * (-conductors + 0.5) - trace/2 + 0.25/2), + (0, 0, conductors * pitch, 0), + (conductors * pitch, 0, conductors * pitch/2, conductors * pitch/2), + (conductors * pitch, 0, conductors * pitch/2, -conductors * pitch/2), + ]], + texts=[ + footprints.Text( + text='Mesh', + at=footprints.AtPos(pitch/2 + trace/2 + 0.25 + conductors * pitch + 0.5, 0), + layer='F.Fab', + effects=footprints.TextEffect(justify=footprints.Justify(h=footprints.Atom.left)) + ) + ], pads=[ footprints.Pad( number=f'{i+1}', diff --git a/mesh_footprints.tar.xz b/mesh_footprints.tar.xz index 7695b8f..bb28abf 100644 Binary files a/mesh_footprints.tar.xz and b/mesh_footprints.tar.xz differ -- cgit