Cap lip support
This commit is contained in:
@@ -114,15 +114,23 @@ module box() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Upper cap
|
// Upper cap lip
|
||||||
module cap() {
|
module lip() {
|
||||||
|
// Lip support
|
||||||
|
translate([0, 0, box_cut_height + 5]) {
|
||||||
|
intersection() {
|
||||||
difference() {
|
difference() {
|
||||||
closed_box();
|
main_body();
|
||||||
translate([0, 0, - box_cut_height]) {
|
scale([0.95, 0.95, 0.95]) main_body();
|
||||||
cube([width*2, height*2, depth], true);
|
}
|
||||||
|
|
||||||
|
cube([width*2, height*2, box_cut_height], true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Lip
|
|
||||||
|
|
||||||
|
// Chamfered lip
|
||||||
|
difference() {
|
||||||
for (i = [0:10]) {
|
for (i = [0:10]) {
|
||||||
translate([0, 0, box_cut_height - i * 0.5]) {
|
translate([0, 0, box_cut_height - i * 0.5]) {
|
||||||
intersection() {
|
intersection() {
|
||||||
@@ -132,30 +140,41 @@ module cap() {
|
|||||||
main_body();
|
main_body();
|
||||||
}
|
}
|
||||||
scale([0.95, 0.95, 0.95]) main_body();
|
scale([0.95, 0.95, 0.95]) main_body();
|
||||||
|
|
||||||
/*
|
|
||||||
// Clear screws standoffs near curved edges
|
|
||||||
translate([width/2 - rounded_edge_diameter/2, -height/2, 0]) {
|
|
||||||
standoff();
|
|
||||||
}
|
|
||||||
translate([-width/2 + rounded_edge_diameter/2, height/2, 0]) {
|
|
||||||
standoff();
|
|
||||||
}
|
|
||||||
// Clear screws standoff near sharp edges
|
|
||||||
translate([-width/2, -height/2, 0]) {
|
|
||||||
standoff();
|
|
||||||
}
|
|
||||||
translate([width/2, height/2, 0]) {
|
|
||||||
standoff();
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cube([width*2, height*2, 0.5], true);
|
cube([width*2, height*2, 0.5], true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Leave space for screws standoffs near curved edges
|
||||||
|
translate([width/2 - rounded_edge_diameter/2, -height/2, 0]) {
|
||||||
|
scale([1.2, 1.2, 1]) standoff();
|
||||||
|
}
|
||||||
|
translate([-width/2 + rounded_edge_diameter/2, height/2, 0]) {
|
||||||
|
scale([1.2, 1.2, 1]) standoff();
|
||||||
|
}
|
||||||
|
// Leave space for screws standoff near sharp edges
|
||||||
|
translate([-width/2 + standoff_diameter/2, -height/2, 0]) {
|
||||||
|
scale([1.2, 1.2, 1]) standoff();
|
||||||
|
}
|
||||||
|
translate([width/2 - standoff_diameter/2, height/2, 0]) {
|
||||||
|
scale([1.2, 1.2, 1]) standoff();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//closed_box();
|
// Upper cap
|
||||||
cap();
|
module cap() {
|
||||||
|
difference() {
|
||||||
|
closed_box();
|
||||||
|
translate([0, 0, - box_cut_height]) {
|
||||||
|
cube([width*2, height*2, depth], true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
lip();
|
||||||
|
}
|
||||||
|
|
||||||
|
translate([0, -60, 0]) box();
|
||||||
|
translate([0, 60, 0]) rotate([180, 0, 0]) cap();
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
use <fabula_enclosure.scad>
|
|
||||||
$fn=32;
|
|
||||||
|
|
||||||
|
|
||||||
translate([0, -60, 0]) box();
|
|
||||||
translate([0, 60, 0]) rotate([180, 0, 0]) cap();
|
|
||||||
Reference in New Issue
Block a user