62 lines
2.0 KiB
OpenSCAD
62 lines
2.0 KiB
OpenSCAD
|
// auto-lüfterschlitz-einsatz-mopped
|
||
|
//#######################################
|
||
|
// vars:
|
||
|
plate_h=54; // frontplatte, höhe
|
||
|
plate_w=196; // frontplatte, breite
|
||
|
tab_depth=20; // tiefe der seitlichen flügel
|
||
|
mt=3; // materialstärke
|
||
|
pin_t=4; // länge des loch-pins
|
||
|
hole_dia=9.5; // durchmesser befestigungsloch
|
||
|
hole_depth=11.75; // distanz tiefe der befestigungsbohrung, mittenabstand
|
||
|
instrument_dia=52; // durchmesser einlass für instrument
|
||
|
instrument_count=3; // anzahl einlässe
|
||
|
instrument_h=20; // hülsentiefe für einlässe
|
||
|
offset=1.5; // x und y überstand der Platte
|
||
|
$fn=100; // detailgrad
|
||
|
//#######################################
|
||
|
// model:
|
||
|
|
||
|
module plate(){
|
||
|
translate([-plate_w/2-offset,-plate_h/2-offset,-mt/2]){
|
||
|
cube([plate_w+(2*offset),plate_h+(2*offset),mt]);
|
||
|
// left tab
|
||
|
translate([offset,2*mt+offset,mt]) {
|
||
|
union(){
|
||
|
cube([mt,plate_h-4*mt,tab_depth]);
|
||
|
translate([-pin_t/2,(plate_h-4*mt)/2,hole_depth])rotate([0,90,0])cylinder(h=pin_t,r=hole_dia/2,center=true);
|
||
|
}
|
||
|
}
|
||
|
// right tab
|
||
|
translate([plate_w-offset,2*mt+offset,mt]) {
|
||
|
union(){
|
||
|
cube([mt,plate_h-4*mt,tab_depth]);
|
||
|
translate([pin_t/2+mt,(plate_h-4*mt)/2,hole_depth])rotate([0,90,0])cylinder(h=pin_t,r=hole_dia/2,center=true);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module insert_hole(){
|
||
|
translate([0,0,-mt/2-0.1])cylinder(r=instrument_dia/2+mt/2,h=mt+0.2);
|
||
|
}
|
||
|
module insert(){
|
||
|
difference(){
|
||
|
cylinder(r=instrument_dia/2+mt/2,h=instrument_h,center=true);
|
||
|
cylinder(r=instrument_dia/2,h=instrument_h+0.1,center=true);
|
||
|
}
|
||
|
}
|
||
|
module complete_model(){
|
||
|
plate();
|
||
|
}
|
||
|
|
||
|
difference(){
|
||
|
complete_model();
|
||
|
insert_hole();
|
||
|
translate([plate_w*0.33,0,0])insert_hole();
|
||
|
translate([-(plate_w*0.33),0,0])insert_hole();
|
||
|
}
|
||
|
translate([0,0,instrument_h/2-mt/2]){
|
||
|
insert();
|
||
|
translate([plate_w*0.33,0,0])insert();
|
||
|
translate([-(plate_w*0.33),0,0])insert();
|
||
|
}
|