Skip to content
Snippets Groups Projects
Commit 98a2d9a2 authored by fxk8y's avatar fxk8y :spider:
Browse files

Final version ATM

parent 904dabb9
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ pcb_sc_off = 5; // offset of screw holes from edge
pcb_conn_w = 20;
pcb_conn_h = 3;
box_str = 2; // Material strength
box_str = 3; // Material strength
module pcb(w=pcb_w, h=pcb_h, r=pcb_r, off=pcb_off) {
......@@ -101,15 +101,17 @@ module clipReceptacle(w=10, h=3, d=2) {
module minkowskiDemonstration() {
translate([-100, 0, 0]) {
color([10 /255, 230 /255, 20 /255]) {
cube([50, 20, 10]);
cylinder(d1=0, d2=10, h=5);
}
translate([0, 0, 15]) minkowski() {
cube([50, 20, 10]);
cylinder(d1=0, d2=10, h=5);
translate([-70, -25, 0]) {
rotate([0, 0, 90]) {
color([10 /255, 230 /255, 20 /255]) {
cube([50, 20, 10]);
cylinder(d1=0, d2=10, h=5);
}
translate([0, 0, 15]) minkowski() {
cube([50, 20, 10]);
cylinder(d1=0, d2=10, h=5);
}
}
}
}
......@@ -119,21 +121,18 @@ module outerRing(w=pcb_w, h=pcb_h, r=pcb_r, off=pcb_off, _str=box_str) {
s2 = _str/2;
difference() {
pcb3D(w, h, r, off=off);
pcb3D(w-s2, h-s2, r, off=off);
}
}
module outerRingTop(w, h, r, off, _str) {
minkowski() {
outerRing(w, h, r, off, _str);
cylinder(d1=0, d2=3, h=3, $fs=1.0, $fa=0.7);
difference() {
pcb3D(w, h, r, off=off);
pcb3D(w-s2, h-s2, r, off=off);
}
cylinder(d1=0, d2=10, h=10, $fs=1.0, $fa=0.7);
}
}
TpOrChamfer = 3;
module TransportProtection(w=pcb_w, h=pcb_h, r=pcb_r, height=pcb_t, off=pcb_off, _str=box_str) {
......@@ -142,28 +141,22 @@ module TransportProtection(w=pcb_w, h=pcb_h, r=pcb_r, height=pcb_t, off=pcb_off,
difference() {
body(w, h, r, _h, off, _str);
translate([0, 0, _h-2]) outerRingTop(w, h, r, off, _str);
translate([0, 0, _h-TpOrChamfer]) outerRing(w, h, r, off, _str);
translate([0, 0, 3]) rotate([0, 180, 0]) outerRingTop(w, h, r, _str+1, _str);
translate([0, 0, 5.5]) rotate([0, 180, 0]) outerRing(w, h, r, _str+1, _str);
}
}
/*translate([0, 0, 10]) minkowski() {
outerRing();
cylinder(d1=0, d2=3, h=3, $fs=1.0, $fa=0.5);
}*/
if ($preview) {
// translate([0, 0,box_str]) PCBMockUp();
minkowskiDemonstration();
TransportProtection();
translate([0, 0,box_str]) PCBMockUp();
// minkowskiDemonstration();
TransportProtection();
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment