adjusted 2mm panel_clamps, implemented bottom cover and front vents

This commit is contained in:
Edward Kisiel
2025-05-07 15:36:18 -04:00
parent 5b03cd94fc
commit c09d444913
4 changed files with 142 additions and 109 deletions

View File

@@ -38,18 +38,20 @@ module panel_clamp(face, screw, style, dia_x, dia_y, height, mask) {
rotz = face == "left" ? 90 : face == "right" ? 270 : 0;
if(enablemask == true && mstyle == "default") {
rotate([rotx,roty,rotz]) {
cylinder(d=dia_y, h=height);
}
}
if(enablemask == false) {
rotate([rotx,roty,rotz]) {
difference() {
cylinder(d2=dia_x, d1=dia_y, h=height);
if(screw == "m2") {
translate([(-dia_y-(nuts[2][0]+.5)/2)/2, 0, 3]) rotate([0,90,0])
translate([(-dia_y-(nuts[2][0]+.5)/2)/2, 0, 2.25]) rotate([0,90,0])
cylinder(d=nuts[0][0]+.5, h=dia_y+2);
translate([-(dia_y/2), 0, 3]) rotate([0,90,0])
translate([-(dia_y/2), 0, 2.25]) rotate([0,90,0])
cylinder(d=nuts[0][1]*2/sqrt(3), h=dia_y*.375, $fn=6);
translate([nuts[0][0]+.5, 0, 3]) rotate([0,90,0])
translate([nuts[0][0]+.5, 0, 2.25]) rotate([0,90,0])
cylinder(d=nuts[0][1]+.5, h=dia_y*.375);
}
if(screw == "m2.5") {