more hacky work on the case in openscad - now it's hollow and translucent

This commit is contained in:
Sundog Jones 2020-07-10 18:08:30 -07:00
parent ef40849348
commit c2dad51f45
1 changed files with 27 additions and 10 deletions

View File

@ -17,18 +17,35 @@ lcd_height = 23.4;
lcd_depth = 6; // how far to recess from top surface of case
// build
difference() {
// case
roundedcube(
[
battery_width + 1,
battery_length + 1,
depth_of_circuit_boards + battery_depth + 2
],
false,
5
);
color("white", 0.4) {
roundedcube(
[
battery_width + 1,
battery_length + 1,
depth_of_circuit_boards + battery_depth + 2
],
false,
5
);
}
// hollow out the case leaving 1mm thick shell
translate([1, 1, 1]) {
color("white", 0.0) {
roundedcube(
[
battery_width - 1,
battery_length - 1,
depth_of_circuit_boards + battery_depth
],
false,
5
);
}
}
// active area of the LCD screen is 23.4mm x 23.4mm according to http://www.lcdwiki.com/1.3inch_IPS_Module
// lcd cutout
translate ([