Merge pull request #46 from MichaelPFrey/master

circle does not have a center parameter
This commit is contained in:
Chow Loong Jin 2018-12-21 12:48:25 +08:00 committed by GitHub
commit 5246f78d34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@ This script generates a teardrop shape at the appropriate angle to prevent overh
module teardrop(radius, length, angle) {
rotate([0, angle, 0]) union() {
linear_extrude(height = length, center = true, convexity = radius, twist = 0)
circle(r = radius, center = true, $fn = 30);
circle(r = radius, $fn = 30);
linear_extrude(height = length, center = true, convexity = radius, twist = 0)
projection(cut = false) rotate([0, -angle, 0]) translate([0, 0, radius * sin(45) * 1.5]) cylinder(h = radius * sin(45), r1 = radius * sin(45), r2 = 0, center = true, $fn = 30);
}