From a550058f81d4dc4c339fcd1d91533fae2ecf2b72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Paluch?= Date: Sun, 16 Nov 2025 13:21:45 +0100 Subject: [PATCH] first commit --- bracket.py | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 bracket.py diff --git a/bracket.py b/bracket.py new file mode 100644 index 0000000..d9e24c2 --- /dev/null +++ b/bracket.py @@ -0,0 +1,36 @@ +from build123d import * + +thickness = 3 * MM +width = 25 * MM +length = 50 * MM +height = 25 * MM +hole_diameter = 5 * MM +bend_radius = 5 * MM +fillet_radius = 2 * MM + + +with BuildPart() as bracket: + with BuildSketch() as s2: + with BuildLine() as p1: + FilletPolyline((0, 0), (25, 0), (25, 25), radius=5) + offset(amount=2, side=Side.LEFT) + make_face() + mirror(about=Plane.YZ) + extrude(amount=25 / 2) + mirror(about=Plane.XY) + corners = bracket.edges().filter_by(Axis.X).group_by(Axis.Y)[-1] + fillet(corners, 2) + prawa = bracket.faces().sort_by(Axis.X)[-1] + przod = bracket.faces().sort_by(Axis.Y)[0] + with Locations(prawa): + Hole(5 / 2) + with BuildSketch(przod): + SlotOverall(20, 5) + test = extrude(amount=-3, mode=Mode.SUBTRACT) + +# show_object(s1.sketch) +show_object(bracket) +# debug(corners) +# debug(prawa) +# debug(przod) +# debug(test)