From b931583d7a60eb6f94ef3830d11870f9498190d4 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sat, 20 Jul 2024 15:18:48 -0700 Subject: [PATCH] Bevel edges --- v1/scad/lib/generic/spoolmount_hook.scad | 60 +++++++++++++++++------- 1 file changed, 42 insertions(+), 18 deletions(-) diff --git a/v1/scad/lib/generic/spoolmount_hook.scad b/v1/scad/lib/generic/spoolmount_hook.scad index f06822a..c5d160b 100644 --- a/v1/scad/lib/generic/spoolmount_hook.scad +++ b/v1/scad/lib/generic/spoolmount_hook.scad @@ -1,23 +1,47 @@ module spoolmount_hook() { - linear_extrude(9) { - polygon(points=[ - [0, 0], - [0, 12], - [1, 12], - [3, 10], - [7, 10], - [9, 12], - [10, 12], - [10, 8], - [8, 6], - [5, 6], - [5, 2], - [3, 2], - [1, 0], - ]); + difference() { + // Hook body + linear_extrude(9) { + polygon(points=[ + [0, 0], + [0, 12], + [1, 12], + [3, 10], + [7, 10], + [9, 12], + [10, 12], + [10, 8], + [8, 6], + [5, 6], + [5, 2], + [3, 2], + [1, 0], + ]); - translate([8, 8]) - circle(r=2, $fn=50); + translate([8, 8]) + circle(r=2, $fn=50); + } + + // Corner cutouts + { + translate([9, 10.5, -0.5]) + rotate([90, 0, 90]) + linear_extrude(3, center=true) + polygon(points=[ + [0, 0], + [2, 0], + [2, 2], + ]); + + translate([9, 10.5, 9.5]) + rotate([-90, 0, 90]) + linear_extrude(3, center=true) + polygon(points=[ + [0, 0], + [2, 0], + [2, 2], + ]); + } } }