Subtract room for battery and cable

This commit is contained in:
Johannes Wendel
2026-07-26 16:52:11 +02:00
parent 012c7cfd9d
commit 329d35b7d2
+26 -10
View File
@@ -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();