[OpenSCAD] truncated teardrop countersink

Triffid Hunter triffid.hunter at gmail.com
Fri Sep 30 01:53:03 CEST 2011


here's a present for you!

module teardrop2(r1 = 10, r2 = 5, h=5) {
	difference() {
		cube([r1, r1, h]);
		translate([r1 * sqrt(2), 0, 0]) rotate([0, 0, 45]) rotate([0,
-atan((r1 - r2) / h), 0]) translate([0, 0, -r1]) cube([r1 * 2, r1 * 2,
h * (r1)]);
		translate([r1, r1, 0]) rotate([0, 0, 90]) rotate([0, -atan((r1 - r2)
/ h), 0]) translate([0, 0, -r1]) cube([r1 * 2, r1 * 2, h * (r1)]);
		translate([r1, -r1, 0]) rotate([0, 0, 0]) rotate([0, -atan((r1 - r2)
/ h), 0]) translate([0, 0, -r1]) cube([r1 * 2, r1 * 2, h * (r1)]);
	}
	cylinder(r1 = r1, r2 = r2, h=h);
}

r1 must be > r2 at the moment

enjoy :)

On Fri, Sep 30, 2011 at 7:23 AM, nop head <nop.head at gmail.com> wrote:
> Anybody know how to model this?
>
> The hole and the counter-bore are truncated tear drops. How do I join
> them with a 45 degree countersink that is also tear dropped?
>
> It would be a loft operation in CoCreate.
>
> _______________________________________________
> OpenSCAD mailing list
> OpenSCAD at rocklinux.org
> http://rocklinux.net/mailman/listinfo/openscad
>
>


More information about the OpenSCAD mailing list