Create frame
This commit is contained in:
BIN
rev2/3d-models/frame-right.stl
Normal file
BIN
rev2/3d-models/frame-right.stl
Normal file
Binary file not shown.
@@ -128,16 +128,11 @@ rightTopDampener();
|
|||||||
//leftTopDampener();
|
//leftTopDampener();
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
module case(){
|
|
||||||
// Then adjust the shim, aux and pico.
|
|
||||||
// Last add magnets, don't forget the clearance.
|
|
||||||
$baseHeight = 7.6;
|
|
||||||
|
|
||||||
module magnets(){
|
|
||||||
$magnetWidth = 4;
|
$magnetWidth = 4;
|
||||||
$magnetRadius = ($magnetWidth / 2) + $clearance/2;
|
$magnetRadius = ($magnetWidth / 2) + $clearance/2;
|
||||||
$magnetHeight = 2 + $clearance;
|
$magnetHeight = 2 + $clearance;
|
||||||
|
module magnets(){
|
||||||
|
|
||||||
$offset = ($shellWidth / 2 / 2) -0.8 ;
|
$offset = ($shellWidth / 2 / 2) -0.8 ;
|
||||||
// Set Z-origin to align with shell top
|
// Set Z-origin to align with shell top
|
||||||
translate([0, 0, $shellHeight -$magnetHeight]){
|
translate([0, 0, $shellHeight -$magnetHeight]){
|
||||||
@@ -151,6 +146,12 @@ module case(){
|
|||||||
cylinder(h=$magnetHeight, r=$magnetRadius);
|
cylinder(h=$magnetHeight, r=$magnetRadius);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
module case(){
|
||||||
|
// Then adjust the shim, aux and pico.
|
||||||
|
// Last add magnets, don't forget the clearance.
|
||||||
|
$baseHeight = 7.6;
|
||||||
|
|
||||||
|
|
||||||
module aux(){
|
module aux(){
|
||||||
$topLeftOfPcbToCenterOfAux = 15.4;
|
$topLeftOfPcbToCenterOfAux = 15.4;
|
||||||
$measurementPcbPlaneToCenterOfAux = 2.8;
|
$measurementPcbPlaneToCenterOfAux = 2.8;
|
||||||
@@ -300,8 +301,34 @@ module pcb() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
module lid(){
|
||||||
|
difference(){
|
||||||
|
|
||||||
|
translate([0,0,$shellHeight]){
|
||||||
|
union(){
|
||||||
|
linear_extrude($magnetHeight+0.2){
|
||||||
|
difference(){
|
||||||
|
offset(r=$shellWidth/2 + $clearance, chamfer=true) polygon(points);
|
||||||
|
offset(r=$clearance) polygon(points);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
linear_extrude(1){
|
||||||
|
difference(){
|
||||||
|
offset(r=$clearance) polygon(points);
|
||||||
|
offset(r=-1.5, chamfer=true) polygon(points);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
translate([0,0,$magnetHeight-0.1])
|
||||||
|
magnets();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
*%pcb();
|
*%pcb();
|
||||||
*%topDampeners();
|
%topDampeners();
|
||||||
case();
|
case();
|
||||||
|
lid();
|
||||||
|
|||||||
Reference in New Issue
Block a user