diff --git a/front.scad b/front.scad index d5d9710..dac3aa8 100644 --- a/front.scad +++ b/front.scad @@ -46,7 +46,7 @@ include ; * Anschlag 7 mm von der Platine. */ -// Abgerundete Kanten. +// Abgerundete Kanten (aufwendig). rounded_edges = true; // Aussparungen für den linken Analog-Stick. @@ -191,8 +191,7 @@ module screw_support(width, length) { // Bohrung für die Schrauben. module screw_drill() { - // Die "$preview"-Bedingung reduziert Feher bei der Vorschau. - cylinder(h=space + top + ($preview ? 0.2 : 0), r=drill/2, $fn=24); + cylinder(h=space + top, r=drill/2, $fn=24); } // Maske für Stellen, an denen der Rand nicht ganz auf der Platine aufliegen @@ -328,11 +327,11 @@ module casing_front() { outer(); } - // Vergrößere das zu substrahierende Objekt, um Darstellungsfehler - // in der Voransicht zu vermeiden. if ($preview) { + // Vergrößere das zu substrahierende Objekt, um Darstellungsfehler + // in der Voransicht zu vermeiden. translate([0, 0, -0.1]) - resize([0, 0, top + struts + 0.4]) + resize([0, 0, top + 0.2]) top_cutouts(); } else { top_cutouts(); @@ -449,9 +448,6 @@ module casing_front() { // Plazierung der Bohrungen. difference() { casing_front(); - - // Bedingtes translate um Fehler bei der Vorschau auszubessern. - translate([0, 0, $preview ? -0.1 : 0]) union() { for (i = [0:3]) { translate([drill_pos[i][0], drill_pos[i][1], 0]) @@ -460,13 +456,13 @@ difference() { // Die Löcher für die Analog-Sticks. if (analog_stick_l) { - linear_extrude(height = space * ($preview ? 1.2 : 1)) { + linear_extrude(height = space) { import("./svg/front analog stick l.svg"); } } if (analog_stick_r) { - linear_extrude(height = space * ($preview ? 1.2 : 1)) { + linear_extrude(height = space) { import("./svg/front analog stick r.svg"); } } diff --git a/svg/front construction.svg b/svg/front construction.svg index ae595c0..fc8f8f5 100644 --- a/svg/front construction.svg +++ b/svg/front construction.svg @@ -45,9 +45,9 @@ borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" - inkscape:zoom="1.5249621" - inkscape:cx="283.6136" - inkscape:cy="207.87402" + inkscape:zoom="2.3445271" + inkscape:cx="421.83347" + inkscape:cy="93.835554" inkscape:document-units="mm" inkscape:current-layer="layer7" inkscape:document-rotation="0" @@ -1241,44 +1241,39 @@ inkscape:label="Drawings"> - - - + transform="translate(-11.279167,-27.500003)"> + + diff --git a/svg/front drawings.svg b/svg/front drawings.svg index 8db3044..66adc24 100644 --- a/svg/front drawings.svg +++ b/svg/front drawings.svg @@ -23,9 +23,9 @@ borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" - inkscape:zoom="1.5249621" - inkscape:cx="283.28572" - inkscape:cy="207.87402" + inkscape:zoom="1.3035139" + inkscape:cx="283.46456" + inkscape:cy="207.89959" inkscape:document-units="mm" inkscape:current-layer="layer1" inkscape:document-rotation="0" @@ -71,27 +71,20 @@ inkscape:groupmode="layer" id="layer1"> + style="color:#000000;fill:#000000;fill-rule:evenodd;-inkscape-stroke:none" + d="m 126.15039,15.199219 c -0.59419,-0.005 -1.00568,0.737878 -0.56445,1.326172 l 0.002,0.0039 1.21094,1.414062 1.21094,-1.414062 0.004,-0.0039 c 0.31376,-0.418341 0.20068,-0.915784 -0.10937,-1.164063 -0.15503,-0.124139 -0.36054,-0.188534 -0.57617,-0.15039 -0.18564,0.03284 -0.368,0.177638 -0.53711,0.367187 -0.20288,-0.220131 -0.42408,-0.377053 -0.64063,-0.378906 z m -0.002,0.236328 c 0.16813,0.0014 0.36452,0.08781 0.55664,0.34375 l 0.0937,0.125 0.0937,-0.125 c 0.16177,-0.21552 0.32898,-0.309832 0.47656,-0.335938 0.14758,-0.0261 0.28137,0.01564 0.38867,0.101563 0.21462,0.171854 0.31256,0.511638 0.0664,0.839844 l -1.02539,1.195312 -1.02539,-1.195312 c -0.34616,-0.461537 -0.0234,-0.952591 0.375,-0.949219 z" + id="path3" /> + 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" /> - - - + 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" /> +