main
Caleb Publish 0.1.1 2c57d9f 1d ago
diff --git a/Crystal/cq_parameters_Resonator_peterman_smd.py b/Crystal/cq_parameters_Resonator_peterman_smd.py
index 6eefa18..3b0e093 100644
--- a/Crystal/cq_parameters_Resonator_peterman_smd.py
+++ b/Crystal/cq_parameters_Resonator_peterman_smd.py
@@ -432,6 +432,22 @@ class cq_parameters_Resonator_peterman_smd:
             )
             pins = pins.union(pin)
 
+        # Adom (2026-10-27): optional pin-3 identification chamfer on the inner corner of the +x/+y pad,
+        # as drawn on the maker's bottom view. p3_chamfer = [cx, cy] leg lengths in mm.
+        if pc == 4 and params.get("p3_chamfer"):
+            cx, cy = params["p3_chamfer"]
+            x0, y0 = psx / 2.0 - pl / 2.0, psy / 2.0 - pw / 2.0
+            cutter = (
+                cq.Workplane("XY")
+                .workplane(offset=-0.05)
+                .moveTo(x0 - 0.01, y0 - 0.01)
+                .lineTo(x0 + cx, y0 - 0.01)
+                .lineTo(x0 - 0.01, y0 + cy)
+                .close()
+                .extrude(pin_thickness + 0.1)
+            )
+            pins = pins.cut(cutter)
+
         pins = pins.translate((0.0, 0.0, A1))
 
         if rotation != 0: