-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfillets2d.scad
54 lines (40 loc) · 851 Bytes
/
fillets2d.scad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
Modified by Kevin Gravier
https://www.thingiverse.com/mrkmg/about
Originally from: https://github.com/OskarLinde/scad-utils/blob/master/morphology.scad
Modules:
rounding2d(r)
r = radius of rounding
fillet2d(r)
r = radius of rounding
*/
$fa = 0.1;
$fs = 0.1;
// Example
linear_extrude(1)
rounding2d(1)
fillet2d(1)
difference() {
union() {
square([10, 10], center = true);
translate([5, 5])
square([10, 10], center = true);
}
translate([-5, -5])
square([10, 10], center = true);
translate([8, 8])
circle(3);
}
// Example, text
translate([-20, -15])
rotate([0, 0, 0])
linear_extrude(1)
rounding2d(.25)
fillet2d(.25)
text("Fillets!");
module fillet2d(r) {
offset(r = -r) offset(delta = r) children(0);
}
module rounding2d(r) {
offset(r = r) offset(delta = -r) children(0);
}