case: battery harness: switch from 11 columns of shells to 9 columns

This commit is contained in:
2024-07-16 12:05:40 +00:00
parent f8c9d70e15
commit 7e085a8551

View File

@@ -39,9 +39,9 @@ battery_shift_y = 2.5
# # should be distant enough to slip the battery through.
# battery_strap_inset_y = 8.0
battery_harness_height = 0.3 #< keep near 1-2 layer heights
battery_harness_shell_rad = 3.1
battery_harness_shell_thickness = 0.8
battery_harness_margin_bottom = 16.8
battery_harness_shell_rad = 3.85
battery_harness_shell_thickness = 1.2
battery_harness_margin_bottom = 6.9
battery_harness_margin_top = 0.0
dark_gray = cq.Color(95/256, 87/256, 79/256)
@@ -329,7 +329,7 @@ def battery_harness(phone, battery):
# .union(pattern_shells.translate(( pattern_spacing, pattern_spacing, 0)))
).translate((harness_bbox.center.x, harness_bbox.center.y, 0)) \
.translate((0, 0.5*(battery_harness_margin_top - battery_harness_margin_bottom), 0)) \
.translate((-1.0*pattern_spacing, -0.5*pattern_spacing, 0)) # optional, to swap center gap for center circle
.translate((-0.0*pattern_spacing, 0.5*pattern_spacing, 0)) # optional (-1.0/-0.5/0.0/+0.5/+1.0), to swap center gap for center circle
harness = harness.intersect(harness_box)
# cut an opening at the bottom for e.g. USB plug