56 lines
1.8 KiB
OpenSCAD
56 lines
1.8 KiB
OpenSCAD
include <../pi/raspberry.scad>
|
|
include <../pi/orangepi.scad>
|
|
|
|
tray_size = [102, 61.5, 5];
|
|
cutout_marings = [12, 12, -0.5];
|
|
pillar_size = [5, 6.3/2];
|
|
brim_size = [3, tray_size[1], pillar_size[0]];
|
|
screw_radius = 3/2;
|
|
|
|
module tray() {
|
|
difference() {
|
|
union() {
|
|
// body
|
|
difference(){
|
|
cube(tray_size);
|
|
|
|
// cutout
|
|
translate(cutout_marings) cube([tray_size[0]-(cutout_marings[0]*2), tray_size[1]-(cutout_marings[1]*2), tray_size[2]+1]);
|
|
}
|
|
|
|
// brim
|
|
translate([tray_size[0]-brim_size[0], 0, tray_size[2]]) cube(brim_size);
|
|
}
|
|
// remove edges
|
|
color("#ff0000") translate([-0.5, 0, tray_size[2]/2]) union() {
|
|
rotate([45, 0, 0]) cube([tray_size[0]+1, 3.54, 5]);
|
|
mirror([0,0,1]) {
|
|
rotate([45, 0, 0]) cube([tray_size[0]+1, 3.54, 5]);
|
|
}
|
|
|
|
translate([0, tray_size[1], 0]) mirror([0,1,0]) {
|
|
rotate([45, 0, 0]) cube([tray_size[0]+1, 3.54, 5]);
|
|
mirror([0,0,1]) {
|
|
rotate([45, 0, 0]) cube([tray_size[0]+1, 3.54, 5]);
|
|
}
|
|
}
|
|
}
|
|
|
|
// remove edges of brim
|
|
translate([0, 0, tray_size[2]]) union() {
|
|
cube([tray_size[0]+1, 2.8, 10]);
|
|
translate([0, tray_size[1]-2.7, 0]) cube([tray_size[0]+1, 2.8, 10]);
|
|
}
|
|
}
|
|
}
|
|
|
|
function offset_pi(size) = [tray_size[0]-size[0]-5.5, (tray_size[1] - size[1])/2, tray_size[2]+pillar_size[0]];
|
|
|
|
module pillar() {
|
|
difference() {
|
|
cylinder(h=pillar_size[0], r=pillar_size[1], center=true);
|
|
cylinder(h=pillar_size[0]+1, r=screw_radius, center=true);
|
|
}
|
|
}
|
|
|
|
// tray(); |