From 60688268caf642ac9592ffbded38b18c5642c9f4 Mon Sep 17 00:00:00 2001 From: Shy Date: Sat, 30 Dec 2023 00:23:11 +0100 Subject: [PATCH] Make left and right analog stick optional. --- front.scad | 32 ++++++-- ...ts.svg => front analog stick l struts.svg} | 11 +-- svg/front analog stick l.svg | 75 ++++++++++++++++++ svg/front analog stick r struts.svg | 76 +++++++++++++++++++ ...og sticks.svg => front analog stick r.svg} | 24 ++++-- 5 files changed, 198 insertions(+), 20 deletions(-) rename svg/{front analog sticks struts.svg => front analog stick l struts.svg} (70%) create mode 100644 svg/front analog stick l.svg create mode 100644 svg/front analog stick r struts.svg rename svg/{front analog sticks.svg => front analog stick r.svg} (68%) diff --git a/front.scad b/front.scad index 1987b20..a98c952 100644 --- a/front.scad +++ b/front.scad @@ -49,6 +49,12 @@ include ; // Abgerundete Kanten (aufwendig). rounded_edges = true; +// Aussparungen für den linken Analog-Stick. +analog_stick_l = true; + +// Aussparungen für den rechten Analog-Stick. +analog_stick_r = true; + // Dicke der Decke. top = 1.0; @@ -105,9 +111,6 @@ led_gauge = true; // LED Logo. led_logo = true; -// Aussparungen für die Analog-Sticks. -analog_sticks = true; - /************************************************************************* * Überprüfe Parameter auf Fehler. * @@ -241,11 +244,20 @@ module outer() { } // Verstärkungen für die Analog-Sticks. - if (analog_sticks) { + if (analog_stick_l) { color(color_struts) translate([0, 0, top]) { linear_extrude(height = struts) { - import("./svg/front analog sticks struts.svg"); + import("./svg/front analog stick l struts.svg"); + } + } + } + + if (analog_stick_r) { + color(color_struts) + translate([0, 0, top]) { + linear_extrude(height = struts) { + import("./svg/front analog stick r struts.svg"); } } } @@ -433,9 +445,15 @@ difference() { } // Die Löcher für die Analog-Sticks. - if (analog_sticks) { + if (analog_stick_l) { linear_extrude(height = space) { - import("./svg/front analog sticks.svg"); + import("./svg/front analog stick l.svg"); + } + } + + if (analog_stick_r) { + linear_extrude(height = space) { + import("./svg/front analog stick r.svg"); } } } diff --git a/svg/front analog sticks struts.svg b/svg/front analog stick l struts.svg similarity index 70% rename from svg/front analog sticks struts.svg rename to svg/front analog stick l struts.svg index 2c3456f..f7cc313 100644 --- a/svg/front analog sticks struts.svg +++ b/svg/front analog stick l struts.svg @@ -6,7 +6,7 @@ version="1.1" id="svg8" inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)" - sodipodi:docname="front analog sticks struts.svg" + sodipodi:docname="front analog stick r struts.svg" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns="http://www.w3.org/2000/svg" @@ -23,9 +23,9 @@ borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" - inkscape:zoom="0.87869644" - inkscape:cx="-88.767857" - inkscape:cy="185.50206" + inkscape:zoom="1.3035139" + inkscape:cx="257.38122" + inkscape:cy="207.89959" inkscape:document-units="mm" inkscape:current-layer="layer1" inkscape:document-rotation="0" @@ -70,6 +70,7 @@ + d="m 132.00021,18.999874 v 2.071708 c -6.91701,0.51197 -12.41644,6.011395 -12.92841,12.92841 h -17.57205 v 1.999878 h 17.57205 c 0.52344,7.311539 6.59812,12.981438 13.92835,13.00024 3.24217,-0.0077 6.38116,-1.140513 8.88111,-3.204972 l 6.61872,6.618717 v -2.827734 l -5.16868,-5.168677 c 2.35281,-2.572872 3.66097,-5.931062 3.66851,-9.417513 -0.002,-7.342179 -5.67631,-13.435284 -12.99972,-13.959872 v -2.040185 z" + sodipodi:nodetypes="ccccccccccccccc" /> diff --git a/svg/front analog stick l.svg b/svg/front analog stick l.svg new file mode 100644 index 0000000..eb31fbb --- /dev/null +++ b/svg/front analog stick l.svg @@ -0,0 +1,75 @@ + + + + + + + + + + image/svg+xml + + + + + + + + diff --git a/svg/front analog stick r struts.svg b/svg/front analog stick r struts.svg new file mode 100644 index 0000000..aaf7163 --- /dev/null +++ b/svg/front analog stick r struts.svg @@ -0,0 +1,76 @@ + + + + + + + + + + image/svg+xml + + + + + + + + diff --git a/svg/front analog sticks.svg b/svg/front analog stick r.svg similarity index 68% rename from svg/front analog sticks.svg rename to svg/front analog stick r.svg index 2b516df..2c3cab7 100644 --- a/svg/front analog sticks.svg +++ b/svg/front analog stick r.svg @@ -5,8 +5,8 @@ viewBox="0 0 150 110" version="1.1" id="svg8" - inkscape:version="1.2.2 (b0a8486541, 2022-12-01)" - sodipodi:docname="front analog sticks.svg" + inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)" + sodipodi:docname="front analog stick l.svg" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns="http://www.w3.org/2000/svg" @@ -24,8 +24,8 @@ inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="0.78577241" - inkscape:cx="283.79719" - inkscape:cy="209.34815" + inkscape:cx="283.16087" + inkscape:cy="209.98447" inkscape:document-units="mm" inkscape:current-layer="layer1" inkscape:document-rotation="0" @@ -34,14 +34,22 @@ inkscape:snap-bbox="true" inkscape:bbox-nodes="true" inkscape:pagecheckerboard="0" - inkscape:deskcolor="#d1d1d1"> + inkscape:deskcolor="#d1d1d1" + inkscape:window-width="1438" + inkscape:window-height="880" + inkscape:window-x="0" + inkscape:window-y="16" + inkscape:window-maximized="1"> + empspacing="4" + originx="0" + originy="0" + visible="false" /> @@ -51,7 +59,6 @@ image/svg+xml - @@ -62,6 +69,7 @@ + d="m 19.999813,53.999805 c -6.62745,1.19e-4 -11.9999507,5.372851 -11.9997845,12.000301 1.193e-4,6.627248 5.3725365,11.999665 11.9997845,11.999784 6.62745,1.66e-4 12.000182,-5.372334 12.000301,-11.999784 1.66e-4,-6.627652 -5.372649,-12.000467 -12.000301,-12.000301 z" + sodipodi:nodetypes="ccccc" />