Further simplify
This commit is contained in:
@@ -4,26 +4,30 @@ width=208.2;
|
|||||||
depth=70.2;
|
depth=70.2;
|
||||||
height=8;
|
height=8;
|
||||||
|
|
||||||
display();
|
display_frame();
|
||||||
module display(){
|
module display_frame(){
|
||||||
// outer display frame
|
|
||||||
difference(){
|
|
||||||
translate([0, 0, 0])
|
|
||||||
cube([width+(thickness*2), depth+(thickness*2), height]);
|
|
||||||
translate([thickness, thickness, 0])
|
|
||||||
cube([width, depth, height]);
|
|
||||||
}
|
|
||||||
|
|
||||||
// inner display catch
|
|
||||||
translate([thickness, thickness, 1.5]){
|
|
||||||
padding=5;
|
|
||||||
ledge=0.8;
|
|
||||||
difference(){
|
difference(){
|
||||||
translate([padding, 0, 0])
|
// main frame
|
||||||
cube([width-(padding*2), depth, thickness]);
|
translate([0, 0, 0])
|
||||||
translate([0, ledge, 0])
|
cube([width+(thickness*2), depth+(thickness*2), height+22]);
|
||||||
cube([width, depth-(ledge*2), thickness]);
|
translate([thickness, thickness, 0])
|
||||||
|
cube([width, depth, height+22]);
|
||||||
|
|
||||||
|
// hdmi gap
|
||||||
|
translate([thickness+95, depth+thickness, height])
|
||||||
|
cube([25, 0.8, 17]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// inner display catch
|
||||||
|
translate([thickness, thickness, 1.5]){
|
||||||
|
padding=5;
|
||||||
|
ledge=0.8;
|
||||||
|
difference(){
|
||||||
|
translate([padding, 0, 0])
|
||||||
|
cube([width-(padding*2), depth, thickness]);
|
||||||
|
translate([0, ledge, 0])
|
||||||
|
cube([width, depth-(ledge*2), thickness]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// usb compartment
|
// usb compartment
|
||||||
@@ -34,30 +38,12 @@ translate([0, 0, 0])
|
|||||||
translate([146.6, 0, 0])
|
translate([146.6, 0, 0])
|
||||||
battery_compartment();
|
battery_compartment();
|
||||||
|
|
||||||
// raspberry pi 4 cover
|
|
||||||
rpi4_cover();
|
|
||||||
|
|
||||||
// display hinge
|
// display hinge
|
||||||
translate([(width+thickness*2)/2, -9, 6.57])
|
translate([(width+thickness*2)/2, -9, 6.57])
|
||||||
rotate([90, 270, 0])
|
rotate([90, 270, 0])
|
||||||
male_hinge();
|
male_hinge();
|
||||||
}
|
}
|
||||||
|
|
||||||
module rpi4_cover(){
|
|
||||||
pi_height=22;
|
|
||||||
|
|
||||||
difference(){
|
|
||||||
translate([0, 0, height])
|
|
||||||
cube([width+(thickness*2), depth+(thickness*2), pi_height]);
|
|
||||||
translate([thickness, thickness, height])
|
|
||||||
cube([width, depth, pi_height]);
|
|
||||||
|
|
||||||
// hdmi gap
|
|
||||||
translate([thickness+95, depth+thickness, height])
|
|
||||||
cube([25, 0.8, 17]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
module usb_compartment(){
|
module usb_compartment(){
|
||||||
usb_width=41;
|
usb_width=41;
|
||||||
usb_height=4;
|
usb_height=4;
|
||||||
|
|||||||
Reference in New Issue
Block a user