Scale model to fit battery

This commit is contained in:
Johannes Wendel
2026-07-26 15:10:17 +02:00
parent f664d04eb7
commit a74a18fbd1
3 changed files with 16 additions and 7 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
BASE_MODEL_SCALE = [1,1,1];
BASE_MODEL_TRANSLATE = [0,0,16];
BASE_MODEL_SCALE = [1.1, 1, 1.1];
BASE_MODEL_TRANSLATE = [0, 0, 17];
module main_display(){
// Outer dimensions, height currently unknown
+1 -1
View File
@@ -5,7 +5,7 @@ module left_half_components() {
}
module left_half() {
translate(BASE_MODEL_TRANSLATE) import(file = "left-half.3mf");
translate(BASE_MODEL_TRANSLATE) scale(BASE_MODEL_SCALE) import(file = "left-half.3mf");
}
left_half();
+13 -4
View File
@@ -5,22 +5,31 @@ module right_half_components() {
}
module right_half_orig() {
translate(BASE_MODEL_TRANSLATE) import(file = "right-half.3mf");
translate(BASE_MODEL_TRANSLATE) scale(BASE_MODEL_SCALE) import(file = "right-half.3mf");
}
// #right_half_orig();
module right_half_door_only() {
translate(BASE_MODEL_TRANSLATE+[10.25, -85, -16]) import(file = "right-half_door-only.stl");
translate(BASE_MODEL_TRANSLATE+[11.3, -85, -17]) scale(BASE_MODEL_SCALE) import(file = "right-half_door-only.stl");
}
// #right_half_door_only();
module right_half_hinge_only() {
translate(BASE_MODEL_TRANSLATE+[0.25, -12.3, -6]) import(file = "right-half_hinge-only.3mf");
module original() {
translate(BASE_MODEL_TRANSLATE+[0.34, -12.3, -6]) scale(BASE_MODEL_SCALE) import(file = "right-half_hinge-only.3mf", convexity=3);
}
module base_model() {
difference() {
original();
translate([-20, -108.3, -20]) cube(40);
}
}
base_model();
}
// #right_half_hinge_only();
module right_half_connector() {
translate(BASE_MODEL_TRANSLATE+[5.35, -12.3, -11]) import(file = "right-half_connector.3mf");
translate(BASE_MODEL_TRANSLATE+[5.86, -12.3, -11.5]) scale(BASE_MODEL_SCALE) import(file = "right-half_connector.3mf");
}
// #right_half_connector();