From fbc86297a08959a8fb341aacb0c0ead3319ebb94 Mon Sep 17 00:00:00 2001 From: Luke Hubmayer-Werner Date: Thu, 6 Feb 2025 20:02:33 +1030 Subject: [PATCH] Add cylinder circumscribing --- common.scad | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common.scad b/common.scad index 01554d9..6433b8c 100644 --- a/common.scad +++ b/common.scad @@ -1,3 +1,4 @@ +PBass_Scale_mm = 865; // Actually 34inch = 864.6mm Fender_Scale_mm = 648; // Actually 25.5inch = 647.7mm Classical_Normal_Scale_mm = 650; // about 25.59inch Classical_Short_Scale_mm = 635; // = 25inch @@ -63,6 +64,12 @@ module screw_hole_lobe(ID, OD, lobes=3, fn=90) { } } +module cylinder_outer(d, h, fn) { + // Regular circle inscribes, this circumscribes + fudge = 1/cos(180/fn); + cylinder(d=d*fudge, h=h, $fn=fn); +} + module cylinder_beak(d, h, beak=0.75) { // A cylinder with a beak to take seams. This helps improve tolerances as seams often expand a little bit and ruin the fit. cylinder(d=d, h=h);