mirror of
https://github.com/nophead/Mendel90.git
synced 2025-08-07 22:06:29 +02:00
Neater teardrops using hull as suggested by @Wulfsta.
This commit is contained in:
@@ -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)]]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user