added grill version

main
zeus 2022-09-11 21:02:15 +02:00
parent c322fe63a3
commit d151d33346
3 changed files with 34 additions and 13 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

View File

@ -23,10 +23,11 @@ shield_center_slot_w=0.5;
shield_hole_center_dia=4;
shield_hole_center_dist=shield_h/2;
// model "gril":
m_gril_h=shield_h-3*mt;
m_gril_w=mt;
m_gril_angle=15;
m_gril_spacing=m_gril_w;
m_grill_w=3;
m_grill_h=shield_h*0.75-m_grill_w-2*mt;
m_grill_skew=25;
m_grill_offset=5;
m_grill_spacing=m_grill_w;
// #####################################
// MODEL:
@ -61,9 +62,9 @@ module shield_1(){
if (shield_center_slot>0) { // generate slot and matching connection-holes in the center
difference(){
shield();
#cube([shield_center_slot_w,shield_h+q,shield_d+q],center=true);
cube([shield_center_slot_w,shield_h+q,shield_d+q],center=true);
for(y=[-shield_hole_center_dist/2,shield_hole_center_dist/2]){
translate([0,y,mt/2])rotate([0,90,0])#cylinder(d=shield_hole_center_dia,h=mt*4+q,center=true);
translate([0,y,mt/2])rotate([0,90,0])cylinder(d=shield_hole_center_dia,h=mt*4+q,center=true);
}
}
}
@ -82,22 +83,42 @@ module shield_2(){
shield_hole(-shield_w/2+mt/2+29.5,shield_h/2-mt/2,4.4,-90,0); //top side, 2nd from left
shield_hole(-shield_w/2+mt/2+148.5,shield_h/2-mt/2,4.4,-90,0); //top side, 3rd from left
shield_hole(-shield_w/2+mt/2+162,shield_h/2-shield_tab_emboss_d-mt/2-q*0.5,5.5,-90,0); //top side, 4th from left (recessed)
shield_hole(-shield_w/2+mt/2+173,shield_h/2-shield_tab_emboss_d-mt/2-q*0.5,6.25,-90,0); //top side, 5th from left (recessed)
shield_hole(-shield_w/2+mt/2+171.5,shield_h/2-shield_tab_emboss_d-mt/2-q*0.5,6.25,-90,0); //top side, 5th from left (recessed)
shield_hole(shield_w/2-mt/2,-0.5,4,0,90); //right side
shield_hole(-shield_w/2+mt/2+173,-shield_h/2+mt/2,4.25,90,0); // bottom side, 1st one from right
shield_hole(-shield_w/2+mt/2+172.5,-shield_h/2+mt/2,4.25,90,0); // bottom side, 1st one from right
shield_hole(-shield_w/2+mt/2+56.25,-shield_h/2+mt/2,4.25,90,0); //bottom side, 2nd one from right
shield_hole(-shield_w/2+mt/2+4.5,-shield_h/2+mt/2,4.25,90,0); //bottom side, 3rd one from right
}
}
}
// final interation: with fan-grills
module shield_grill(){
difference(){
shield_2();
for(a=[0:m_grill_spacing*2:shield_w/2-mt*3-m_grill_offset*3]){
translate([-shield_w/2+mt*3+m_grill_offset+a,0,-shield_d/2+mt/2+q]){
hull(){
for (y=[-m_grill_h/2,m_grill_h/2]){
rotate([0,0,-m_grill_skew])translate([0,y,0])cylinder(d=m_grill_w,h=2*mt,center=true);
}
}
translate([shield_w/2,0,0])hull(){
for (y=[-m_grill_h/2,m_grill_h/2]){
rotate([0,0,-m_grill_skew])translate([0,y,0])cylinder(d=m_grill_w,h=2*mt,center=true);
}
}
}
}
}
}
// #####################################
// DRAWING:
difference(){
shield_2();
translate([0,0,6])cube([200,100,5],center=true);
translate([0,0,-5.45])cube([200,100,5],center=true);
}
//difference(){
shield_grill();
// translate([0,0,6])cube([200,100,5],center=true);
// translate([0,0,-5.45])cube([200,100,5],center=true);
//}