From 67edee3e880f7717a823fe7bbc578c940b889017 Mon Sep 17 00:00:00 2001 From: Shy Date: Thu, 4 Jan 2024 20:36:40 +0100 Subject: [PATCH] Added engravings. --- front.scad | 10 +++++ svg/front construction.svg | 49 +++++++++++++++++++-- svg/front drawings.svg | 90 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 145 insertions(+), 4 deletions(-) create mode 100644 svg/front drawings.svg diff --git a/front.scad b/front.scad index a98c952..2b6234e 100644 --- a/front.scad +++ b/front.scad @@ -49,6 +49,9 @@ include ; // Abgerundete Kanten (aufwendig). rounded_edges = true; +// Tiefe der Gravur auf der Vorderseite (0 zum deaktivieren). +engraving = 0.15; + // Aussparungen für den linken Analog-Stick. analog_stick_l = true; @@ -165,6 +168,13 @@ module top_cutouts() { import("./svg/front led power.svg"); } } + + // Gravuren. + if (engraving > 0) { + linear_extrude(height=engraving) { + import("./svg/front drawings.svg"); + } + } } // Schaft für die Schrauben. diff --git a/svg/front construction.svg b/svg/front construction.svg index 1ec6f48..63d2e1a 100644 --- a/svg/front construction.svg +++ b/svg/front construction.svg @@ -45,11 +45,11 @@ borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" - inkscape:zoom="1.397" - inkscape:cx="283.46457" - inkscape:cy="207.58769" + inkscape:zoom="2.1644584" + inkscape:cx="378.84766" + inkscape:cy="129.82463" inkscape:document-units="mm" - inkscape:current-layer="layer4" + inkscape:current-layer="layer7" inkscape:document-rotation="0" showgrid="false" inkscape:showpageshadow="true" @@ -1235,4 +1235,45 @@ id="path10075" sodipodi:nodetypes="ccc" /> + + + + + + + + + diff --git a/svg/front drawings.svg b/svg/front drawings.svg new file mode 100644 index 0000000..6b30cb3 --- /dev/null +++ b/svg/front drawings.svg @@ -0,0 +1,90 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + +