Compare commits

..

3 Commits

Author SHA1 Message Date
Joel Ebel
2250e70c25 Merge branch 'master' into top_hole 2019-12-27 14:21:42 -05:00
Joel Ebel
f0a6e1f797 Add a cylinder example too. 2018-07-02 14:48:20 -04:00
Joel Ebel
b186bdd3ce Add an example of cutting a top hole in the box 2018-07-02 14:29:54 -04:00

View File

@ -148,7 +148,7 @@ Foot4Y = PCBWidth - Foot4YFromEdge;
/* [STL element to export] */
// - Top shell
TShell = 0; // [0:No, 1:Yes]
TShell = 1; // [0:No, 1:Yes]
// - Bottom shell
BShell = 1; // [0:No, 1:Yes]
// - Front panel
@ -288,12 +288,12 @@ module BPanelText() {
Produces a box of the specified dimensions. Corners are rounded
according to Filet and Resolution parameters.
Arguments:
xshrink: the amount to reduce the length on one end compared to the full
length
yzshrink: the amount to reduce the width or height on one edge compared
to the full box
to the full box
*/
module RoundBox(xshrink=0, yzshrink=0) {
Filet = (Filet > Thick*2) ? Filet - yzshrink : Filet;
@ -430,7 +430,7 @@ module tab() {
translate([0, ScrewHole*2, PartMargin]) {
difference() {
sphere(d=(ScrewHole - PartMargin*2), $fn=100);
translate([0, 0, ScrewHole/2 + TabThick/2]) {
translate([0, 0, ScrewHole*.5 + TabThick/2]) {
cube(ScrewHole, center=true);
}
}
@ -629,7 +629,7 @@ module Feet(top=0) {
if (!top) {
%PCB();
}
if (Screwless || !top ) {
translate([Foot1X, Foot1Y]) {
foot(top=top);
@ -665,6 +665,12 @@ module TopShell() {
}
}
Holes(top=1);
translate([60, 40, -Thick]) {
cube([30, 90, Thick*3]);
}
translate([120, 85, -Thick]) {
cylinder(Thick*3, d=16);
}
}
}
}