Make left and right analog stick optional.
This commit is contained in:
parent
0c109aea63
commit
60688268ca
5 changed files with 198 additions and 20 deletions
32
front.scad
32
front.scad
|
@ -49,6 +49,12 @@ include <colors.scad>;
|
||||||
// Abgerundete Kanten (aufwendig).
|
// Abgerundete Kanten (aufwendig).
|
||||||
rounded_edges = true;
|
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.
|
// Dicke der Decke.
|
||||||
top = 1.0;
|
top = 1.0;
|
||||||
|
|
||||||
|
@ -105,9 +111,6 @@ led_gauge = true;
|
||||||
// LED Logo.
|
// LED Logo.
|
||||||
led_logo = true;
|
led_logo = true;
|
||||||
|
|
||||||
// Aussparungen für die Analog-Sticks.
|
|
||||||
analog_sticks = true;
|
|
||||||
|
|
||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* Überprüfe Parameter auf Fehler. *
|
* Überprüfe Parameter auf Fehler. *
|
||||||
|
@ -241,11 +244,20 @@ module outer() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Verstärkungen für die Analog-Sticks.
|
// Verstärkungen für die Analog-Sticks.
|
||||||
if (analog_sticks) {
|
if (analog_stick_l) {
|
||||||
color(color_struts)
|
color(color_struts)
|
||||||
translate([0, 0, top]) {
|
translate([0, 0, top]) {
|
||||||
linear_extrude(height = struts) {
|
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.
|
// Die Löcher für die Analog-Sticks.
|
||||||
if (analog_sticks) {
|
if (analog_stick_l) {
|
||||||
linear_extrude(height = space) {
|
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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
version="1.1"
|
version="1.1"
|
||||||
id="svg8"
|
id="svg8"
|
||||||
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)"
|
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:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
@ -23,9 +23,9 @@
|
||||||
borderopacity="1.0"
|
borderopacity="1.0"
|
||||||
inkscape:pageopacity="0.0"
|
inkscape:pageopacity="0.0"
|
||||||
inkscape:pageshadow="2"
|
inkscape:pageshadow="2"
|
||||||
inkscape:zoom="0.87869644"
|
inkscape:zoom="1.3035139"
|
||||||
inkscape:cx="-88.767857"
|
inkscape:cx="257.38122"
|
||||||
inkscape:cy="185.50206"
|
inkscape:cy="207.89959"
|
||||||
inkscape:document-units="mm"
|
inkscape:document-units="mm"
|
||||||
inkscape:current-layer="layer1"
|
inkscape:current-layer="layer1"
|
||||||
inkscape:document-rotation="0"
|
inkscape:document-rotation="0"
|
||||||
|
@ -70,6 +70,7 @@
|
||||||
<path
|
<path
|
||||||
id="circle1211-5"
|
id="circle1211-5"
|
||||||
style="display:inline;fill:#aad400;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round"
|
style="display:inline;fill:#aad400;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round"
|
||||||
d="M 132.00021 18.999874 L 132.00021 21.071582 A 14 14 0 0 0 119.0718 33.999992 L 101.49975 33.999992 L 101.49975 35.99987 L 119.0718 35.99987 A 14 14 0 0 0 133.00015 49.00011 A 14 14 0 0 0 141.88126 45.795138 L 148.49998 52.413855 L 148.49998 49.586121 L 143.3313 44.417444 A 14 14 0 0 0 146.99981 34.999931 A 14 14 0 0 0 134.00009 21.040059 L 134.00009 18.999874 L 132.00021 18.999874 z M 49.293115 35.292936 L 29.164111 55.42194 A 14 14 0 0 0 19.999813 51.999927 A 14 14 0 0 0 6.071464 65.000167 L 3.9997559 65.000167 L 3.9997559 67.000045 L 6.071464 67.000045 A 14 14 0 0 0 19.999813 79.999768 A 14 14 0 0 0 33.999992 66.000106 A 14 14 0 0 0 30.578495 56.835807 L 50.706982 36.706803 L 49.293115 35.292936 z " />
|
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" />
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.6 KiB |
75
svg/front analog stick l.svg
Normal file
75
svg/front analog stick l.svg
Normal file
|
@ -0,0 +1,75 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
width="150mm"
|
||||||
|
height="110mm"
|
||||||
|
viewBox="0 0 150 110"
|
||||||
|
version="1.1"
|
||||||
|
id="svg8"
|
||||||
|
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)"
|
||||||
|
sodipodi:docname="front analog stick r.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"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
|
<defs
|
||||||
|
id="defs2" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="1.3035139"
|
||||||
|
inkscape:cx="283.46457"
|
||||||
|
inkscape:cy="207.89959"
|
||||||
|
inkscape:document-units="mm"
|
||||||
|
inkscape:current-layer="layer1"
|
||||||
|
inkscape:document-rotation="0"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:showpageshadow="true"
|
||||||
|
inkscape:snap-bbox="true"
|
||||||
|
inkscape:bbox-nodes="true"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#d1d1d1"
|
||||||
|
inkscape:window-width="1438"
|
||||||
|
inkscape:window-height="880"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="16"
|
||||||
|
inkscape:window-maximized="1">
|
||||||
|
<inkscape:grid
|
||||||
|
type="xygrid"
|
||||||
|
id="grid833"
|
||||||
|
units="mm"
|
||||||
|
spacingx="0.25"
|
||||||
|
spacingy="0.25"
|
||||||
|
empspacing="4"
|
||||||
|
originx="0"
|
||||||
|
originy="0"
|
||||||
|
visible="false" />
|
||||||
|
</sodipodi:namedview>
|
||||||
|
<metadata
|
||||||
|
id="metadata5">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<path
|
||||||
|
id="path983-3"
|
||||||
|
style="display:inline;opacity:1;fill:#5a2ca0;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round"
|
||||||
|
d="m 119.46661,21.913908 -2.44688,3.164148 3.82457,2.98173 c 0.67197,-1.174278 1.51062,-2.244949 2.48977,-3.178617 z m 13.53354,1.086238 c -6.62745,-1.66e-4 -12.00018,5.372335 -12.0003,11.999785 -1.7e-4,6.627652 5.37265,12.000467 12.0003,12.000301 6.62745,-1.22e-4 11.99995,-5.372852 11.99978,-12.000301 -1.2e-4,-6.627247 -5.37253,-11.999664 -11.99978,-11.999785 z"
|
||||||
|
sodipodi:nodetypes="cccccccccc" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.5 KiB |
76
svg/front analog stick r struts.svg
Normal file
76
svg/front analog stick r struts.svg
Normal file
|
@ -0,0 +1,76 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
width="150mm"
|
||||||
|
height="110mm"
|
||||||
|
viewBox="0 0 150 110"
|
||||||
|
version="1.1"
|
||||||
|
id="svg8"
|
||||||
|
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)"
|
||||||
|
sodipodi:docname="front analog stick l 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"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
|
<defs
|
||||||
|
id="defs2" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="1.3035139"
|
||||||
|
inkscape:cx="257.38122"
|
||||||
|
inkscape:cy="207.89959"
|
||||||
|
inkscape:document-units="mm"
|
||||||
|
inkscape:current-layer="layer1"
|
||||||
|
inkscape:document-rotation="0"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:showpageshadow="true"
|
||||||
|
inkscape:snap-bbox="false"
|
||||||
|
inkscape:bbox-nodes="true"
|
||||||
|
inkscape:snap-smooth-nodes="true"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#d1d1d1"
|
||||||
|
inkscape:window-width="1438"
|
||||||
|
inkscape:window-height="880"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="16"
|
||||||
|
inkscape:window-maximized="1">
|
||||||
|
<inkscape:grid
|
||||||
|
type="xygrid"
|
||||||
|
id="grid833"
|
||||||
|
units="mm"
|
||||||
|
spacingx="0.25"
|
||||||
|
spacingy="0.25"
|
||||||
|
empspacing="4"
|
||||||
|
originx="0"
|
||||||
|
originy="0"
|
||||||
|
visible="false" />
|
||||||
|
</sodipodi:namedview>
|
||||||
|
<metadata
|
||||||
|
id="metadata5">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<path
|
||||||
|
id="circle1211-5"
|
||||||
|
style="display:inline;fill:#aad400;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round"
|
||||||
|
d="M 49.293115,35.292936 29.164111,55.42194 C 26.620205,53.216414 23.36668,52.001525 19.999813,51.999927 12.669586,52.01873 6.5949036,57.688629 6.071464,65.000167 H 3.9997559 v 1.999878 H 6.071464 c 0.5236971,7.311334 6.598307,12.98094 13.928349,12.999723 7.731924,9.9e-5 13.999992,-6.267738 14.000179,-13.999662 -0.0015,-3.366802 -1.216158,-6.620319 -3.421497,-9.164299 L 50.706982,36.706803 Z"
|
||||||
|
sodipodi:nodetypes="cccccccccccc" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.6 KiB |
|
@ -5,8 +5,8 @@
|
||||||
viewBox="0 0 150 110"
|
viewBox="0 0 150 110"
|
||||||
version="1.1"
|
version="1.1"
|
||||||
id="svg8"
|
id="svg8"
|
||||||
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
|
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)"
|
||||||
sodipodi:docname="front analog sticks.svg"
|
sodipodi:docname="front analog stick l.svg"
|
||||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
@ -24,8 +24,8 @@
|
||||||
inkscape:pageopacity="0.0"
|
inkscape:pageopacity="0.0"
|
||||||
inkscape:pageshadow="2"
|
inkscape:pageshadow="2"
|
||||||
inkscape:zoom="0.78577241"
|
inkscape:zoom="0.78577241"
|
||||||
inkscape:cx="283.79719"
|
inkscape:cx="283.16087"
|
||||||
inkscape:cy="209.34815"
|
inkscape:cy="209.98447"
|
||||||
inkscape:document-units="mm"
|
inkscape:document-units="mm"
|
||||||
inkscape:current-layer="layer1"
|
inkscape:current-layer="layer1"
|
||||||
inkscape:document-rotation="0"
|
inkscape:document-rotation="0"
|
||||||
|
@ -34,14 +34,22 @@
|
||||||
inkscape:snap-bbox="true"
|
inkscape:snap-bbox="true"
|
||||||
inkscape:bbox-nodes="true"
|
inkscape:bbox-nodes="true"
|
||||||
inkscape:pagecheckerboard="0"
|
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">
|
||||||
<inkscape:grid
|
<inkscape:grid
|
||||||
type="xygrid"
|
type="xygrid"
|
||||||
id="grid833"
|
id="grid833"
|
||||||
units="mm"
|
units="mm"
|
||||||
spacingx="0.25"
|
spacingx="0.25"
|
||||||
spacingy="0.25"
|
spacingy="0.25"
|
||||||
empspacing="4" />
|
empspacing="4"
|
||||||
|
originx="0"
|
||||||
|
originy="0"
|
||||||
|
visible="false" />
|
||||||
</sodipodi:namedview>
|
</sodipodi:namedview>
|
||||||
<metadata
|
<metadata
|
||||||
id="metadata5">
|
id="metadata5">
|
||||||
|
@ -51,7 +59,6 @@
|
||||||
<dc:format>image/svg+xml</dc:format>
|
<dc:format>image/svg+xml</dc:format>
|
||||||
<dc:type
|
<dc:type
|
||||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
<dc:title />
|
|
||||||
</cc:Work>
|
</cc:Work>
|
||||||
</rdf:RDF>
|
</rdf:RDF>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
@ -62,6 +69,7 @@
|
||||||
<path
|
<path
|
||||||
id="path983-3"
|
id="path983-3"
|
||||||
style="display:inline;opacity:1;fill:#5a2ca0;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round"
|
style="display:inline;opacity:1;fill:#5a2ca0;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round"
|
||||||
d="M 119.46661 21.913908 L 117.01973 25.078056 L 120.8443 28.059786 A 14 14 0 0 1 123.33407 24.881169 L 119.69554 22.089608 L 119.48056 21.921659 L 119.4785 21.923726 L 119.46661 21.913908 z M 133.00015 23.000146 A 12 12 0 0 0 120.99985 34.999931 A 12 12 0 0 0 133.00015 47.000232 A 12 12 0 0 0 144.99993 34.999931 A 12 12 0 0 0 133.00015 23.000146 z M 19.999813 53.999805 A 12 12 0 0 0 8.0000285 66.000106 A 12 12 0 0 0 19.999813 77.99989 A 12 12 0 0 0 32.000114 66.000106 A 12 12 0 0 0 19.999813 53.999805 z " />
|
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" />
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Loading…
Reference in a new issue