From 81912e88e3610b9cb8b6f7c440b02d766f2ffd0c Mon Sep 17 00:00:00 2001 From: Chris Petersen Date: Fri, 10 May 2013 02:24:19 -0600 Subject: [PATCH] Add flat/truncated teardrop module Simple intersection method to implement a flat/truncated teardrop (technique gathered from comments made by whosawhatsis on various forums/blogs). --- teardrop.scad | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/teardrop.scad b/teardrop.scad index a0578e2..136adce 100644 --- a/teardrop.scad +++ b/teardrop.scad @@ -35,6 +35,18 @@ module teardrop(radius, length, angle) { */ } +/* + * Simple intersection method to implement a flat/truncated teardrop + */ +module flat_teardrop(radius, length, angle) { + intersection() { + rotate([0, angle, 0]) { + cube(size=[radius * 2, radius * 2, length], center=true); + } + teardrop(radius, length, angle); + } +} + module test_teardrop(){ translate([0, -15, 0]) teardrop(5, 20, 90); translate([0, 0, 0]) teardrop(5, 20, 60);