1
0
mirror of https://github.com/nophead/Mendel90.git synced 2025-08-08 06:16:29 +02:00

Neater teardrops using hull as suggested by @Wulfsta.

This commit is contained in:
Chris Palmer
2016-03-08 17:42:10 +00:00
parent 48b54e63a4
commit 0167e75375

View File

@@ -9,16 +9,14 @@
// Small holes can get away without it but they print better with truncated teardrops // Small holes can get away without it but they print better with truncated teardrops
// //
module teardrop_2D(r, truncate = true) { module teardrop_2D(r, truncate = true) {
difference() { hull() {
union() { circle(r);
circle(r = r, center = true);
translate([0,r / sqrt(2),0])
rotate([0,0,45])
square([r, r], center = true);
}
if(truncate) if(truncate)
translate([0, r * 2, 0]) translate([0, r / 2, 0])
square([2 * r, 2 * r], center = true); square([2 * r * (sqrt(2) - 1), r], center = true);
else
polygon([[0, 0], [eta, 0], [0, r * sqrt(2)]]);
} }
} }