From 53ecd2704780d3f5e7825f232cb05a42002e9974 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Thu, 9 Nov 2023 12:47:05 -0600 Subject: [PATCH] convert decorative plates to scaling the base button rather than adding --- src/components.scad | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components.scad b/src/components.scad index 12075d7..59c7f61 100644 --- a/src/components.scad +++ b/src/components.scad @@ -79,8 +79,8 @@ neutrik_d_screw_radius = 1.6 + hole_tolerance; neutrik_d_radius = 12 + hole_tolerance; // additional button radius for decorative panels, etc. -decorative_radius = 12; -jumbo_decorative_radius = 15; +decorative_radius_scale = 1.75; +jumbo_decorative_radius_scale = 2; /* PARTS */ @@ -114,8 +114,8 @@ module button_24mm_hole() { // translation is to leave 3mm thickness in the plate without recentering anything translate([0, 0, -25]) cylinder(r=small_button_radius+6, h=49, $fn=50, center=true); // space for decorative button surround stuff - translate([0, 0, 50]) cylinder(r=small_button_radius+decorative_radius, h=20, $fn=50, center=true); - translate([0, 0, 70]) cylinder(r=small_button_radius+jumbo_decorative_radius, h=20, $fn=50, center=true); + translate([0, 0, 50]) cylinder(r=small_button_radius*decorative_radius_scale, h=20, $fn=50, center=true); + translate([0, 0, 70]) cylinder(r=small_button_radius*jumbo_decorative_radius_scale, h=20, $fn=50, center=true); } // button hole, with extra wide bits for various uses (cutting out space @@ -127,8 +127,8 @@ module button_30mm_hole() { // translation is to leave 3mm thickness in the plate without recentering anything translate([0, 0, -25]) cylinder(r=big_button_radius+6, h=49, $fn=50, center=true); // space for decorative button surround stuff - translate([0, 0, 50]) cylinder(r=big_button_radius+decorative_radius, h=20, $fn=50, center=true); - translate([0, 0, 70]) cylinder(r=big_button_radius+jumbo_decorative_radius, h=20, $fn=50, center=true); + translate([0, 0, 50]) cylinder(r=big_button_radius*decorative_radius_scale, h=20, $fn=50, center=true); + translate([0, 0, 70]) cylinder(r=big_button_radius*jumbo_decorative_radius_scale, h=20, $fn=50, center=true); } module frame_hex_bolt_hole() {