From 329d35b7d2f3aa00a313142ffc8076e3e2b1628f Mon Sep 17 00:00:00 2001 From: Johannes Wendel Date: Sun, 26 Jul 2026 16:49:54 +0200 Subject: [PATCH] Subtract room for battery and cable --- model/right-half.scad | 36 ++++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/model/right-half.scad b/model/right-half.scad index 25244c1..6b816ba 100644 --- a/model/right-half.scad +++ b/model/right-half.scad @@ -20,29 +20,45 @@ module right_half_door_only() { module right_half_hinge_only() { module original() { translate(BASE_MODEL_TRANSLATE+[0.34, -12.3, -6]) scale(BASE_MODEL_SCALE) import(file = "right-half_hinge-only.3mf", convexity=3); + translate(BASE_MODEL_TRANSLATE+[5.92, -12.3, -11.48]) scale(BASE_MODEL_SCALE) import(file = "right-half_connector.3mf", convexity=3); } + + module battery_spacer(cable_cube_additional_length) { + length = 106; + rotate([0, 90, 90]) cylinder(d=18.5, h=length); + cable_cube = 8.25; + translate([0, 0, -cable_cube]) cube([cable_cube, length+cable_cube_additional_length, cable_cube]); + } + // !battery_spacer(); + + module cable_room() { + translate([3.5, 0, -3.5]) + rotate([-10, 80, 90]) cylinder(d=8, h=20); + translate([0, 18, 0]) + rotate([0, 90, 90]) cylinder(d=8, h=20); + translate([0, 0, -9.5]) + cube([20, 16.5, 4]); + } + module base_model() { difference() { original(); - translate([-20, -108.3, -20]) cube(40); + translate([-20, -108.3, -10]) cube(40); + translate([0, -85, 11]) + battery_spacer(18); + translate([0, 22.5, 11]) + cable_room(); } } base_model(); + // translate([0, -40, 11]) rotate([0, 0, 90]) battery(); } -// #right_half_hinge_only(); - -module right_half_connector() { - translate(BASE_MODEL_TRANSLATE+[5.86, -12.3, -11.5]) scale(BASE_MODEL_SCALE) import(file = "right-half_connector.3mf"); -} -// #right_half_connector(); +// right_half_hinge_only(); module right_half() { - right_half_connector(); right_half_door_only(); right_half_hinge_only(); } right_half(); // #right_half_components(); - -// #rotate([0, 0, 90]) battery();