|
3 | 3 | ** Yet Another Parameterised Projectbox generator
|
4 | 4 | **
|
5 | 5 | */
|
6 |
| -Version="v2.0.4 (23-07-2023)"; |
| 6 | +Version="v2.0.5 (18-08-2023)"; |
7 | 7 | /*
|
8 | 8 | **
|
9 | 9 | ** Copyright (c) 2021, 2022, 2023 Willem Aandewiel
|
@@ -349,8 +349,8 @@ lightTubes = [
|
349 | 349 | // (8) = buttonType {yappCircle|yappRectangle}
|
350 | 350 | pushButtons = [
|
351 | 351 | //-- 0, 1, 2, 3, 4, 5, 6, 7, 8
|
352 |
| - [15, 30, 8, 8, 0, 2.3, 1, 3.5, yappCircle] |
353 |
| - , [15, 10, 8, 6, 3, 5, 1, 3.5, yappRectangle] |
| 352 | + // [15, 30, 8, 8, 0, 2.3, 1, 3.5, yappCircle] |
| 353 | + // , [15, 10, 8, 6, 3, 5, 1, 3.5, yappRectangle] |
354 | 354 | ];
|
355 | 355 |
|
356 | 356 | //-- origin of labels is box [0,0,0]
|
@@ -1597,7 +1597,8 @@ module makeLightTubes()
|
1597 | 1597 | //-debug-echo("makeLightTubes()", xPos=xPos, yPos=yPos, tLength=tLength, tWidth=tWidth, tWall=tWall, tAbvPcb=tAbvPcb);
|
1598 | 1598 | if (isTrue(yappCircle, tube))
|
1599 | 1599 | {
|
1600 |
| - tmpArray = [[xPos, yPos, tLength, tWidth, tWidth, yappCircle, yappCenter]]; |
| 1600 | + tWidthSmall = ((tWidth/2) < 3) ? 3 : (tWidth/2); //-- 09-08-2023 |
| 1601 | + tmpArray = [[xPos, yPos, tWidthSmall, tWidth, yappCircle, yappCenter]]; |
1601 | 1602 | //-debug-echo("makeLightTubes(Circle)", tmpArray=tmpArray);
|
1602 | 1603 | cutoutsInXY("lid", tmpArray);
|
1603 | 1604 | }
|
@@ -3200,7 +3201,7 @@ module printSwitchPlate(poleDiam, capLength, buttonPlateThickness, yPos)
|
3200 | 3201 | translate([0,0,-0.5])
|
3201 | 3202 | color("blue")
|
3202 | 3203 | //-tst-cylinder(h=buttonPlateThickness, d=poleDiam+0.1+(buttonSlack/2), center=true);
|
3203 |
| - cylinder(h=buttonPlateThickness, d=poleDiam+0.1-(buttonSlack/2), center=true); |
| 3204 | + cylinder(h=buttonPlateThickness, d=poleDiam+0.2-(buttonSlack/2), center=true); |
3204 | 3205 | }
|
3205 | 3206 | }
|
3206 | 3207 |
|
@@ -3269,10 +3270,11 @@ if (!printBaseShell && !printLidShell && printSwitchExtenders)
|
3269 | 3270 |
|
3270 | 3271 | //-- post processing switchExtenders ..
|
3271 | 3272 | //-- place switchExtendes in button ---
|
3272 |
| -if (!showSideBySide && printLidShell && printSwitchExtenders) |
| 3273 | +if (!showSideBySide && printLidShell && printSwitchExtenders && (len(pushButtons) > 0) ) |
3273 | 3274 | {
|
3274 | 3275 | $fn=20;
|
3275 | 3276 | yOffset = ((pcbWidth*2)+shiftLid+paddingLeft+paddingRight+(wallThickness*3)+15);
|
| 3277 | + |
3276 | 3278 | //rotate([0,180,180])
|
3277 | 3279 | {
|
3278 | 3280 | for(i=[0:len(pushButtons)-1])
|
|
0 commit comments