Skip to content

Commit 81f46df

Browse files
committed
make text and printing aids configurable.
1 parent 365d839 commit 81f46df

2 files changed

Lines changed: 21 additions & 13 deletions

File tree

src/MainCase/MainCase.scad

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ module GpsAntennaLid() {
119119
cylinder(d=m3_screw_diameter_loose, h=10, $fn=32);
120120
}
121121

122-
translate([5,-13 ,0])rotate([0,0,90])linear_extrude(MainCase_gps_antenna_lid_thickness+.4)text("GPS",font="open sans", size=10);
122+
if (enable_text) {
123+
translate([5,-13 ,0])rotate([0,0,90])linear_extrude(MainCase_gps_antenna_lid_thickness+.4)text("GPS",font="open sans", size=10);
124+
}
123125
}
124126

125127
module SwitchboxPolygon(padding=0,height=1, depth=12, width=15) {
@@ -376,10 +378,12 @@ module MainCase(without_inserts=false, top_rider=MainCase_top_rider, back_rider=
376378
if (enable_easy_print) {
377379
intersection(){
378380
SwitchboxPolygon(padding=0, height=29.2);
379-
translate([0, 0, 21.6/2]){
380-
union(){
381-
translate([0,-(24-6)/2+3,0.3])cube([60,6, 21.6], center=true);
382-
translate([0,-(24-6)/2+3,0.6])cube([6,6, 21.6], center=true);
381+
if (enable_easy_print) {
382+
translate([0, 0, 21.6/2]){
383+
union(){
384+
translate([0,-(24-6)/2+3,0.3])cube([60,6, 21.6], center=true);
385+
translate([0,-(24-6)/2+3,0.6])cube([6,6, 21.6], center=true);
386+
}
383387
}
384388
}
385389
}
@@ -388,7 +392,9 @@ module MainCase(without_inserts=false, top_rider=MainCase_top_rider, back_rider=
388392
translate([0, -4-wall_thickness, 8])
389393
cylinder(d=6, h=20);
390394

391-
translate([10,-1,-0.49])linear_extrude(0.6)rotate([0,0,180]) text("I / O",font="open sans:style=Bold", size=8);
395+
if(enable_text) {
396+
#translate([11,-1.5,-0.49])linear_extrude(0.6)rotate([0,0,180]) text("I / O",font="open sans:style=Bold", size=8);
397+
}
392398

393399
// Rounded cutout on the inside, the main switch body sits in this place.
394400
translate([0, -wall_thickness, 24])

src/MainCase/UsbCover.scad

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,15 @@ module MagnetHoles() {
9898
}
9999

100100
module CounterMagnetHoles(clearance=0) {
101-
// these are used to punch the magnet holes into the MainCase, together with a bridging helper ridge
102-
// translation into world coordinates
103-
rotate([0,0,90])translate([depth/2,0,0]){
104-
for (i=[-1,1])
105-
translate([-UsbCover_magnet_size/2-depth/2+UsbCover_depth/2,-UsbCover_magnet_size/2-i*UsbCover_magnet_spacing/2,UsbCover_height+clearance]) MagnetHole(inverse=true);
106-
translate([-UsbCover_magnet_size/2-depth/2+UsbCover_depth/2,-UsbCover_width/2-clearance,UsbCover_height+clearance])
107-
cube([UsbCover_magnet_size,UsbCover_width+2*clearance,.25]);
101+
// these are used to punch the magnet holes into the MainCase, together with a bridging helper ridge
102+
// translation into world coordinates
103+
rotate([0,0,90])translate([depth/2,0,0]){
104+
for (i=[-1,1])
105+
translate([-UsbCover_magnet_size/2-depth/2+UsbCover_depth/2,-UsbCover_magnet_size/2-i*UsbCover_magnet_spacing/2,UsbCover_height+clearance]) MagnetHole(inverse=true);
106+
if (enable_easy_print) {
107+
translate([-UsbCover_magnet_size/2-depth/2+UsbCover_depth/2,-UsbCover_width/2-clearance,UsbCover_height+clearance])
108+
cube([UsbCover_magnet_size,UsbCover_width+2*clearance,.25]);
109+
}
108110
}
109111
}
110112

0 commit comments

Comments
 (0)