refactor - introduce config folder, and other misc changes

This commit is contained in:
zhao
2023-06-23 21:52:27 -04:00
parent 752b26bff5
commit 02f0155216
86 changed files with 234 additions and 434 deletions

View File

@ -1,12 +1,40 @@
include <./halfspace.scad>
include <./math.scad>
// Some modules for simple subtractive filets
module sphericalFiletEdge(width, depth, height, roundness) {
rd = roundness;
intersection() {
minkowski() {
sphere(r = rd);
translate(v = [rd, rd, rd])
cube(size = [width*2, depth - 2*rd, height*2]);
}
cube(size = [width, depth, height]);
}
}
module cylindricalFiletEdge(width, depth, height, roundness) {
rd = roundness;
intersection() {
minkowski() {
rotate(a = [90, 0, 0])
cylinder(r = rd, h = eps);
translate(v = [rd, 0, rd])
cube(size = [width, depth, height]);
}
cube(size = [width, depth, height]);
}
}
module cylindricalFiletNegative(p0, p1, n, r) {
l = norm(p1-p0);
align_to(p0=p0, p1=p1, p2=p0-n)
alignTo(p0=p0, p1=p1, p2=p0-n)
rotate(a=[45,0,0])
rotate(a=[0,90,0])
zFiletNegative(length = l, r = r);