Skip to content

Commit ae9a3d2

Browse files
committed
v2.0.5 bugfix round lightTubes
1 parent 3cd77cb commit ae9a3d2

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

library/YAPPgenerator_v20.scad

+8-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
** Yet Another Parameterised Projectbox generator
44
**
55
*/
6-
Version="v2.0.4 (23-07-2023)";
6+
Version="v2.0.5 (18-08-2023)";
77
/*
88
**
99
** Copyright (c) 2021, 2022, 2023 Willem Aandewiel
@@ -349,8 +349,8 @@ lightTubes = [
349349
// (8) = buttonType {yappCircle|yappRectangle}
350350
pushButtons = [
351351
//-- 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]
354354
];
355355

356356
//-- origin of labels is box [0,0,0]
@@ -1597,7 +1597,8 @@ module makeLightTubes()
15971597
//-debug-echo("makeLightTubes()", xPos=xPos, yPos=yPos, tLength=tLength, tWidth=tWidth, tWall=tWall, tAbvPcb=tAbvPcb);
15981598
if (isTrue(yappCircle, tube))
15991599
{
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]];
16011602
//-debug-echo("makeLightTubes(Circle)", tmpArray=tmpArray);
16021603
cutoutsInXY("lid", tmpArray);
16031604
}
@@ -3200,7 +3201,7 @@ module printSwitchPlate(poleDiam, capLength, buttonPlateThickness, yPos)
32003201
translate([0,0,-0.5])
32013202
color("blue")
32023203
//-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);
32043205
}
32053206
}
32063207

@@ -3269,10 +3270,11 @@ if (!printBaseShell && !printLidShell && printSwitchExtenders)
32693270

32703271
//-- post processing switchExtenders ..
32713272
//-- place switchExtendes in button ---
3272-
if (!showSideBySide && printLidShell && printSwitchExtenders)
3273+
if (!showSideBySide && printLidShell && printSwitchExtenders && (len(pushButtons) > 0) )
32733274
{
32743275
$fn=20;
32753276
yOffset = ((pcbWidth*2)+shiftLid+paddingLeft+paddingRight+(wallThickness*3)+15);
3277+
32763278
//rotate([0,180,180])
32773279
{
32783280
for(i=[0:len(pushButtons)-1])

0 commit comments

Comments
 (0)