Skip to content

Commit c4fb6a9

Browse files
committed
Merge pull request SolidCode#10 from ex-nerd/patch-1
Add flat/truncated teardrop module
2 parents 5efe18f + c2de953 commit c4fb6a9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

teardrop.scad

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@ module teardrop(radius, length, angle) {
3636
*/
3737
}
3838

39+
module flat_teardrop(radius, length, angle) {
40+
intersection() {
41+
rotate([0, angle, 0]) {
42+
translate([-radius,-radius,0])
43+
cube(size=[radius * 2, radius * 2, length]);
44+
}
45+
teardrop(radius, length, angle);
46+
}
47+
}
48+
49+
3950
module test_teardrop(){
4051
translate([0, -15, 0]) teardrop(5, 20, 90);
4152
translate([0, 0, 0]) teardrop(5, 20, 60);

0 commit comments

Comments
 (0)