round and hex case work and parameteric fixes
This commit is contained in:
@@ -281,8 +281,8 @@ accessory_data = [
|
|||||||
"suball","rectangle",20.5,-26,4.5,"top",[0,0,0],21,8,13.5,0,0,"vertical",[1,1,1,1]], // sub hdmi opening
|
"suball","rectangle",20.5,-26,4.5,"top",[0,0,0],21,8,13.5,0,0,"vertical",[1,1,1,1]], // sub hdmi opening
|
||||||
|
|
||||||
["c2_hex",
|
["c2_hex",
|
||||||
"suball","round",49.5,-15,10.5,"top",[90,0,0],11,0,15,0,0,"",0, // sub power plug hole
|
"suball","round",49,-10,11,"top",[90,0,0],11,0,18,0,0,"",0, // sub power plug hole
|
||||||
"suball","rectangle",20.5,-26,4.5,"top",[0,0,0],21,15,13.5,0,0,"vertical",[1,1,1,1]], // sub hdmi opening
|
"suball","rectangle",21,-26,4,"top",[0,0,0],21,15,15.5,0,0,"vertical",[1,1,1,1]], // sub hdmi opening
|
||||||
|
|
||||||
|
|
||||||
// Odroid-C4
|
// Odroid-C4
|
||||||
@@ -387,11 +387,11 @@ accessory_data = [
|
|||||||
|
|
||||||
["c4_round",
|
["c4_round",
|
||||||
"suball","round",10.5,-2,14.5,"top",[90,0,0],11,0,18,0,0,"",0, // sub power plug hole
|
"suball","round",10.5,-2,14.5,"top",[90,0,0],11,0,18,0,0,"",0, // sub power plug hole
|
||||||
"suball","rectangle",34.5,-26,4,"top",[0,0,0],21,10,15.5,0,0,"vertical",[1,1,1,1]], // sub hdmi opening
|
"suball","rectangle",35,-26,4,"top",[0,0,0],21,10,15.5,0,0,"vertical",[1,1,1,1]], // sub hdmi opening
|
||||||
|
|
||||||
["c4_hex",
|
["c4_hex",
|
||||||
"suball","round",10.5,-2,14.5,"top",[90,0,0],11,0,18,0,0,"",0, // sub power plug hole
|
"suball","round",10.5,-2,15.5,"top",[90,0,0],11,0,18,0,0,"",0, // sub power plug hole
|
||||||
"suball","rectangle",34.5,-26,4,"top",[0,0,0],21,10,15.5,0,0,"vertical",[1,1,1,1]], // sub hdmi opening
|
"suball","rectangle",35,-26,5,"top",[0,0,0],21,10,15.5,0,0,"vertical",[1,1,1,1]], // sub hdmi opening
|
||||||
|
|
||||||
|
|
||||||
// Odroid-HC4
|
// Odroid-HC4
|
||||||
|
|||||||
@@ -2357,7 +2357,7 @@
|
|||||||
"accessory_name": "c4_hex",
|
"accessory_name": "c4_hex",
|
||||||
"adjust": "0.01",
|
"adjust": "0.01",
|
||||||
"bottom_ext_standoff": "[6.75, 5, 3.6, 10, 4, 1, 0, 0, 0, 4.5, 5.1]",
|
"bottom_ext_standoff": "[6.75, 5, 3.6, 10, 4, 1, 0, 0, 0, 4.5, 5.1]",
|
||||||
"bottom_standoff": "[6.75, 7, 3.6, 10, 4, 1, 0, 0, 0, 4.5, 5.1]",
|
"bottom_standoff": "[6.75, 7, 3.6, 10, 3, 1, 0, 0, 0, 4.5, 5.1]",
|
||||||
"c_fillet": "0",
|
"c_fillet": "0",
|
||||||
"case_design": "hex",
|
"case_design": "hex",
|
||||||
"case_ext_standoffs": "false",
|
"case_ext_standoffs": "false",
|
||||||
@@ -2371,7 +2371,7 @@
|
|||||||
"cooling": "fan",
|
"cooling": "fan",
|
||||||
"exhaust_vents": "none",
|
"exhaust_vents": "none",
|
||||||
"fillet": "0",
|
"fillet": "0",
|
||||||
"floorthick": "2",
|
"floorthick": "3",
|
||||||
"gap": "1.5",
|
"gap": "1.5",
|
||||||
"gpio_opening": "none",
|
"gpio_opening": "none",
|
||||||
"highlight": "false",
|
"highlight": "false",
|
||||||
|
|||||||
@@ -393,8 +393,8 @@ if (view == "model") {
|
|||||||
else {
|
else {
|
||||||
echo(width=width,depth=depth,top=top_height,bottom=bottom_height);
|
echo(width=width,depth=depth,top=top_height,bottom=bottom_height);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//}
|
||||||
// debug
|
// debug
|
||||||
if (view == "debug") {
|
if (view == "debug") {
|
||||||
case_top(case_design);
|
case_top(case_design);
|
||||||
@@ -503,10 +503,10 @@ module case_bottom(case_design) {
|
|||||||
difference() {
|
difference() {
|
||||||
translate([pcb_width/2,pcb_depth/2,bottom_height/2]) rotate([0,0,30])
|
translate([pcb_width/2,pcb_depth/2,bottom_height/2]) rotate([0,0,30])
|
||||||
cylinder_fillet_inside(h=bottom_height, r=case_diameter/2,
|
cylinder_fillet_inside(h=bottom_height, r=case_diameter/2,
|
||||||
top=0, bottom=c_fillet, $fn=case_fn, fillet_fn=case_ffn, center=true);
|
top=0, bottom=fillet, $fn=case_fn, fillet_fn=case_ffn, center=true);
|
||||||
translate([pcb_width/2,pcb_depth/2,(bottom_height/2)+floorthick]) rotate([0,0,30])
|
translate([pcb_width/2,pcb_depth/2,(bottom_height/2)+floorthick]) rotate([0,0,30])
|
||||||
cylinder_fillet_inside(h=bottom_height+adjust+floorthick,
|
cylinder_fillet_inside(h=bottom_height+adjust+floorthick,
|
||||||
r=(case_diameter/2)-lip/2,top=0, bottom=c_fillet-1, $fn=case_fn,
|
r=(case_diameter/2)-lip/2,top=0, bottom=fillet-1, $fn=case_fn,
|
||||||
fillet_fn=case_ffn, center=true);
|
fillet_fn=case_ffn, center=true);
|
||||||
difference() {
|
difference() {
|
||||||
translate([pcb_width/2,pcb_depth/2,bottom_height-lip]) rotate([0,0,30])
|
translate([pcb_width/2,pcb_depth/2,bottom_height-lip]) rotate([0,0,30])
|
||||||
@@ -518,7 +518,7 @@ module case_bottom(case_design) {
|
|||||||
difference() {
|
difference() {
|
||||||
translate([pcb_width/2,pcb_depth/2,(bottom_height/2)+2*floorthick]) rotate([0,0,30])
|
translate([pcb_width/2,pcb_depth/2,(bottom_height/2)+2*floorthick]) rotate([0,0,30])
|
||||||
cylinder_fillet_inside(h=bottom_height+adjust+floorthick+lip,
|
cylinder_fillet_inside(h=bottom_height+adjust+floorthick+lip,
|
||||||
r=(case_diameter/2)-lip/2,top=0, bottom=c_fillet-1, $fn=case_fn,
|
r=(case_diameter/2)-lip/2,top=0, bottom=fillet-1, $fn=case_fn,
|
||||||
fillet_fn=case_ffn, center=true);
|
fillet_fn=case_ffn, center=true);
|
||||||
translate([-16,(depth/2)-60,-adjust])
|
translate([-16,(depth/2)-60,-adjust])
|
||||||
cube([width+10,110,case_z-2*floorthick-2]);
|
cube([width+10,110,case_z-2*floorthick-2]);
|
||||||
@@ -778,11 +778,11 @@ case_z+floorthick],
|
|||||||
pcb_hole_size = sbc_data[s[0]][i+2];
|
pcb_hole_size = sbc_data[s[0]][i+2];
|
||||||
if (pcb_hole_x!=0 && pcb_hole_y!=0 && i == 7 || i == 13) {
|
if (pcb_hole_x!=0 && pcb_hole_y!=0 && i == 7 || i == 13) {
|
||||||
translate([pcb_hole_x-1, pcb_hole_y-(bottom_standoff[0]/2)-(gap+adjust)-1,0])
|
translate([pcb_hole_x-1, pcb_hole_y-(bottom_standoff[0]/2)-(gap+adjust)-1,0])
|
||||||
cube([2,gap+1.6,bottom_standoff[1]]);
|
cube([2,gap+1.6,bottom_height-pcb_z+pcb_loc_z]);
|
||||||
}
|
}
|
||||||
if (pcb_hole_x!=0 && pcb_hole_y!=0 && i == 10 || i == 16) {
|
if (pcb_hole_x!=0 && pcb_hole_y!=0 && i == 10 || i == 16) {
|
||||||
translate([pcb_hole_x-1, pcb_hole_y+(bottom_standoff[0]/2)-.6+adjust,0])
|
translate([pcb_hole_x-1, pcb_hole_y+(bottom_standoff[0]/2)-.6+adjust,0])
|
||||||
cube([2,gap+1.6,bottom_standoff[1]]);
|
cube([2,gap+1.6,bottom_height-pcb_z+pcb_loc_z]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1075,8 +1075,8 @@ module case_top(case_design) {
|
|||||||
cube_fillet_inside([18,depth-2*(wallthick+gap)-1,top_height+lip+2],
|
cube_fillet_inside([18,depth-2*(wallthick+gap)-1,top_height+lip+2],
|
||||||
vertical=[0,0,0,0], top=[0,0,0,0], bottom=[0,0,0,0], $fn=90);
|
vertical=[0,0,0,0], top=[0,0,0,0], bottom=[0,0,0,0], $fn=90);
|
||||||
}
|
}
|
||||||
translate([width-8.5+adjust,(depth/2)-32.5,bottom_height])
|
translate([width-6.5,(depth/2)-wallthick-gap-(depth-2*(floorthick+gap))/2,bottom_height])
|
||||||
cube([wallthick-.5,depth-2-2*(floorthick+gap),top_height-floorthick-gap]);
|
cube([wallthick-.5,depth-2*(floorthick+gap),top_height-floorthick-gap]);
|
||||||
}
|
}
|
||||||
if(case_design == "hex") {
|
if(case_design == "hex") {
|
||||||
difference() {
|
difference() {
|
||||||
@@ -1091,8 +1091,8 @@ module case_top(case_design) {
|
|||||||
cube_fillet_inside([18,depth-2*(wallthick+gap)-1,top_height+lip+2],
|
cube_fillet_inside([18,depth-2*(wallthick+gap)-1,top_height+lip+2],
|
||||||
vertical=[0,0,0,0], top=[0,0,0,0], bottom=[0,0,0,0], $fn=90);
|
vertical=[0,0,0,0], top=[0,0,0,0], bottom=[0,0,0,0], $fn=90);
|
||||||
}
|
}
|
||||||
translate([width-8.5+adjust,(depth/2)-32,bottom_height])
|
translate([width-8.5,(depth/2)+.75-wallthick-gap-(depth-2*(floorthick+gap))/2,bottom_height])
|
||||||
cube([wallthick-.5,depth-3-2*(floorthick+gap),top_height-floorthick-gap]);
|
cube([wallthick-.5,depth-2*(floorthick+gap)-2,top_height-floorthick-gap]);
|
||||||
}
|
}
|
||||||
if(case_design == "snap") {
|
if(case_design == "snap") {
|
||||||
translate([(width/2)-wallthick-gap,(depth/2)-wallthick-gap,floorthick*1.5+case_z])
|
translate([(width/2)-wallthick-gap,(depth/2)-wallthick-gap,floorthick*1.5+case_z])
|
||||||
@@ -1791,7 +1791,7 @@ module open_io() {
|
|||||||
// gpio opening
|
// gpio opening
|
||||||
if(side == "top" && class == "gpio" && type == "header_40" && rotation == 0) {
|
if(side == "top" && class == "gpio" && type == "header_40" && rotation == 0) {
|
||||||
if(gpio_opening == "vent") {
|
if(gpio_opening == "vent") {
|
||||||
for(r=[loc_x-2:4:40+loc_y]) {
|
for(r=[loc_x-2:4:10+loc_y]) {
|
||||||
translate([r,depth-(2*wallthick)-gap-adjust,bottom_height+2])
|
translate([r,depth-(2*wallthick)-gap-adjust,bottom_height+2])
|
||||||
cube([2,wallthick+(2*adjust),top_height-floorthick-7]);
|
cube([2,wallthick+(2*adjust),top_height-floorthick-7]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2356,8 +2356,8 @@ module microusb_open() {
|
|||||||
|
|
||||||
translate([0,0,.5])rotate([90,0,0])
|
translate([0,0,.5])rotate([90,0,0])
|
||||||
hull() {
|
hull() {
|
||||||
translate([6,1.5,-5]) cylinder(d=3.5,h=12);
|
translate([6,1.5,-5]) cylinder(d=3.5,h=9);
|
||||||
translate([1,1.5,-5]) cylinder(d=3.5,h=12);
|
translate([1,1.5,-5]) cylinder(d=3.5,h=9);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user