circle does not have a center parameter

This commit is contained in:
Michael Frey 2018-12-20 22:46:06 +01:00 committed by GitHub
parent 7c75b2a51b
commit 1532fb1032
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) { module teardrop(radius, length, angle) {
rotate([0, angle, 0]) union() { rotate([0, angle, 0]) union() {
linear_extrude(height = length, center = true, convexity = radius, twist = 0) 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) 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); 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);
} }