Merge pull request #46 from MichaelPFrey/master
circle does not have a center parameter
This commit is contained in:
commit
5246f78d34
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue