Added engravings.

This commit is contained in:
Shy 2024-01-04 20:36:40 +01:00
parent 60688268ca
commit 67edee3e88
3 changed files with 145 additions and 4 deletions

View file

@ -49,6 +49,9 @@ include <colors.scad>;
// Abgerundete Kanten (aufwendig). // Abgerundete Kanten (aufwendig).
rounded_edges = true; rounded_edges = true;
// Tiefe der Gravur auf der Vorderseite (0 zum deaktivieren).
engraving = 0.15;
// Aussparungen für den linken Analog-Stick. // Aussparungen für den linken Analog-Stick.
analog_stick_l = true; analog_stick_l = true;
@ -165,6 +168,13 @@ module top_cutouts() {
import("./svg/front led power.svg"); import("./svg/front led power.svg");
} }
} }
// Gravuren.
if (engraving > 0) {
linear_extrude(height=engraving) {
import("./svg/front drawings.svg");
}
}
} }
// Schaft für die Schrauben. // Schaft für die Schrauben.

View file

@ -45,11 +45,11 @@
borderopacity="1.0" borderopacity="1.0"
inkscape:pageopacity="0.0" inkscape:pageopacity="0.0"
inkscape:pageshadow="2" inkscape:pageshadow="2"
inkscape:zoom="1.397" inkscape:zoom="2.1644584"
inkscape:cx="283.46457" inkscape:cx="378.84766"
inkscape:cy="207.58769" inkscape:cy="129.82463"
inkscape:document-units="mm" inkscape:document-units="mm"
inkscape:current-layer="layer4" inkscape:current-layer="layer7"
inkscape:document-rotation="0" inkscape:document-rotation="0"
showgrid="false" showgrid="false"
inkscape:showpageshadow="true" inkscape:showpageshadow="true"
@ -1235,4 +1235,45 @@
id="path10075" id="path10075"
sodipodi:nodetypes="ccc" /> sodipodi:nodetypes="ccc" />
</g> </g>
<g
inkscape:groupmode="layer"
id="layer7"
inkscape:label="Drawings">
<path
id="path3"
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.2;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1"
d="m 126.41678,15.450018 c -0.42274,-0.0036 -0.73527,0.522622 -0.39993,0.969747 l 0.95398,1.112696 0.95398,-1.112696 c 0.47693,-0.635911 -0.35674,-1.431525 -0.95398,-0.635873 -0.17731,-0.236209 -0.37556,-0.332347 -0.55405,-0.333874 z" />
<path
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:6;stroke-dasharray:none;stroke-opacity:1"
d="m 110.41995,6.3150793 1.25,2.25 h -0.75 v 1.7499997 l -1.25,-2.2499997 h 0.75 z"
id="path4"
sodipodi:nodetypes="ccccccc" />
<path
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.2;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1"
d="m 97.250005,9.8150793 v -2.75 h 0.5 v -0.5 h 0.75 v 0.5 h 0.5 v 2.75 z"
id="path5"
sodipodi:nodetypes="ccccccccc" />
<g
id="g7"
transform="translate(-10.75,-27.500003)">
<path
style="fill:none;stroke:#000000;stroke-width:0.2;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:6;stroke-dasharray:none"
id="path6"
sodipodi:type="arc"
sodipodi:cx="81"
sodipodi:cy="120"
sodipodi:rx="1.2500043"
sodipodi:ry="1.2500043"
sodipodi:start="5.4977871"
sodipodi:end="3.9269908"
sodipodi:open="true"
sodipodi:arc-type="arc"
d="m 81.883886,119.11611 a 1.2500043,1.2500043 0 0 1 0.270967,1.36225 A 1.2500043,1.2500043 0 0 1 81,121.25 a 1.2500043,1.2500043 0 0 1 -1.154853,-0.77164 1.2500043,1.2500043 0 0 1 0.270966,-1.36225" />
<path
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.2;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1"
d="m 81.000001,118.75 v 1.75"
id="path7"
sodipodi:nodetypes="cc" />
</g>
</g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 194 KiB

After

Width:  |  Height:  |  Size: 196 KiB

90
svg/front drawings.svg Normal file
View file

@ -0,0 +1,90 @@
<?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 drawings.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="false"
inkscape:bbox-nodes="true"
showguides="true"
inkscape:guide-bbox="true"
inkscape:snap-smooth-nodes="true"
inkscape:snap-object-midpoints="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
style="color:#000000;fill:#000000;fill-rule:evenodd;-inkscape-stroke:none"
d="m 126.41797,15.349609 c -0.50614,-0.0043 -0.8563,0.629748 -0.48047,1.13086 l 0.002,0.002 1.03125,1.203125 1.03125,-1.203125 0.002,-0.002 c 0.26725,-0.356344 0.17426,-0.782656 -0.0898,-0.994141 -0.13205,-0.105742 -0.30851,-0.159444 -0.49218,-0.126953 -0.15806,0.02796 -0.31303,0.153135 -0.45704,0.314453 -0.17301,-0.188129 -0.36212,-0.322638 -0.54687,-0.324219 z m -0.002,0.201172 c 0.14321,0.0012 0.31096,0.07496 0.47461,0.292969 l 0.0801,0.107422 0.0801,-0.107422 c 0.1378,-0.183581 0.28054,-0.264873 0.40625,-0.287109 0.12571,-0.02224 0.24063,0.01274 0.33203,0.08594 0.18281,0.146387 0.26632,0.437231 0.0566,0.716797 l -0.875,1.019531 -0.8789,-1.023437 0.006,0.0039 c -0.29485,-0.393137 -0.021,-0.811484 0.31836,-0.808594 z"
id="path3" />
<path
style="color:#000000;fill:#000000;fill-rule:evenodd;stroke-miterlimit:6;-inkscape-stroke:none"
d="M 110.32031,5.9296875 V 7.9648437 H 109.5 l 1.51953,2.7363283 V 8.6660156 h 0.82031 z m 0.19922,0.7714844 0.98047,1.7636719 h -0.67969 V 9.9277344 L 109.8418,8.1660156 h 0.67773 z"
id="path4" />
<path
style="color:#000000;fill:#000000;fill-rule:evenodd;-inkscape-stroke:none"
d="m 97.650391,6.4648437 v 0.5 h -0.5 v 2.9511719 h 1.949218 V 6.9648437 h -0.5 v -0.5 z m 0.199218,0.2011719 h 0.550782 v 0.5 h 0.5 V 9.7148438 H 97.349609 V 7.1660156 h 0.5 z"
id="path5" />
<path
id="path6"
style="color:#000000;fill:#000000;stroke-linecap:square;stroke-miterlimit:6;-inkscape-stroke:none"
d="M 70.15024 91.250244 L 70.15024 93.000008 L 70.349711 93.000008 L 70.349711 91.250244 L 70.15024 91.250244 z M 69.365275 91.47452 L 69.294995 91.5448 C 68.909101 91.930694 68.793145 92.513383 69.00199 93.017578 C 69.210835 93.521774 69.704238 93.849569 70.249976 93.849569 C 70.795713 93.849569 71.289117 93.521774 71.497961 93.017578 C 71.706806 92.513383 71.590855 91.930694 71.204956 91.5448 L 71.134676 91.47452 L 70.992049 91.61508 L 71.062329 91.687427 C 71.391431 92.016528 71.490552 92.509555 71.312443 92.939547 C 71.134334 93.369538 70.715395 93.650614 70.249976 93.650614 C 69.784556 93.650614 69.365617 93.369538 69.187508 92.939547 C 69.009399 92.509555 69.108522 92.016528 69.437622 91.687427 L 69.507902 91.61508 L 69.365275 91.47452 z " />
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.4 KiB