case: battery harness: close the top opening, leave only a bottom opening

This commit is contained in:
2024-07-16 11:30:05 +00:00
parent 350ddbeb8a
commit f074c0e80a

View File

@@ -41,8 +41,8 @@ battery_shift_y = 6.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 = 21.0
battery_harness_margin_top = 2.0
battery_harness_margin_bottom = 16.8
battery_harness_margin_top = 0.0
dark_gray = cq.Color(95/256, 87/256, 79/256)
mid_gray = cq.Color(128/256, 118/256, 108/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((-pattern_spacing, -pattern_spacing, 0)) # optional, to swap center gap for center circle
.translate((-1.0*pattern_spacing, -0.5*pattern_spacing, 0)) # optional, to swap center gap for center circle
harness = harness.intersect(harness_box)
# cut an opening at the bottom for e.g. USB plug