|
174 | 174 | // anchor = Translate so anchor point is at origin (0,0,0). See [anchor](attachments.scad#subsection-anchor). Default: `CENTER`
|
175 | 175 | // spin = Rotate this many degrees around the Z axis after anchor. See [spin](attachments.scad#subsection-spin). Default: `0`
|
176 | 176 | // orient = Vector to rotate top towards, after spin. See [orient](attachments.scad#subsection-orient). Default: `UP`
|
177 |
| -// $slop = The printer-specific slop value, which adds clearance (`4*$slop`) to internal threads. |
| 177 | +// $slop = The printer-specific slop value, which adds clearance (`2*$slop`) to internal threads. |
178 | 178 | // Example(2D):
|
179 | 179 | // projection(cut=true)
|
180 | 180 | // threaded_rod(d=10, l=15, pitch=1.5, orient=BACK);
|
@@ -327,7 +327,7 @@ module threaded_rod(
|
327 | 327 | // anchor = Translate so anchor point is at origin (0,0,0). See [anchor](attachments.scad#subsection-anchor). Default: `CENTER`
|
328 | 328 | // spin = Rotate this many degrees around the Z axis after anchor. See [spin](attachments.scad#subsection-spin). Default: `0`
|
329 | 329 | // orient = Vector to rotate top towards, after spin. See [orient](attachments.scad#subsection-orient). Default: `UP`
|
330 |
| -// $slop = The printer-specific slop value, which adds clearance (`4*$slop`) to internal threads. |
| 330 | +// $slop = The printer-specific slop value, which adds clearance (`2*$slop`) to internal threads. |
331 | 331 | // Examples(Med):
|
332 | 332 | // threaded_nut(nutwidth=16, id=8, h=8, pitch=1.25, $slop=0.05, $fa=1, $fs=1);
|
333 | 333 | // threaded_nut(nutwidth=16, id=8, h=8, pitch=1.25, left_handed=true, bevel=false, $slop=0.1, $fa=1, $fs=1);
|
@@ -500,7 +500,7 @@ module threaded_nut(
|
500 | 500 | // anchor = Translate so anchor point is at origin (0,0,0). See [anchor](attachments.scad#subsection-anchor). Default: `CENTER`
|
501 | 501 | // spin = Rotate this many degrees around the Z axis after anchor. See [spin](attachments.scad#subsection-spin). Default: `0`
|
502 | 502 | // orient = Vector to rotate top towards, after spin. See [orient](attachments.scad#subsection-orient). Default: `UP`
|
503 |
| -// $slop = The printer-specific slop value, which adds clearance (`4*$slop`) to internal threads. |
| 503 | +// $slop = The printer-specific slop value, which adds clearance (`2*$slop`) to internal threads. |
504 | 504 | // Example(2D):
|
505 | 505 | // projection(cut=true)
|
506 | 506 | // trapezoidal_threaded_rod(d=10, l=15, pitch=2, orient=BACK);
|
@@ -647,7 +647,7 @@ module trapezoidal_threaded_rod(
|
647 | 647 | // anchor = Translate so anchor point is at origin (0,0,0). See [anchor](attachments.scad#subsection-anchor). Default: `CENTER`
|
648 | 648 | // spin = Rotate this many degrees around the Z axis after anchor. See [spin](attachments.scad#subsection-spin). Default: `0`
|
649 | 649 | // orient = Vector to rotate top towards, after spin. See [orient](attachments.scad#subsection-orient). Default: `UP`
|
650 |
| -// $slop = The printer-specific slop value, which adds clearance (`4*$slop`) to internal threads. |
| 650 | +// $slop = The printer-specific slop value, which adds clearance (`2*$slop`) to internal threads. |
651 | 651 | // Examples(Med):
|
652 | 652 | // trapezoidal_threaded_nut(nutwidth=16, id=8, h=8, pitch=2, $slop=0.1, anchor=UP);
|
653 | 653 | // trapezoidal_threaded_nut(nutwidth=16, id=8, h=8, pitch=2, bevel=false, $slop=0.05, anchor=UP);
|
@@ -769,7 +769,7 @@ module trapezoidal_threaded_nut(
|
769 | 769 | // anchor = Translate so anchor point is at origin (0,0,0). See [anchor](attachments.scad#subsection-anchor). Default: `CENTER`
|
770 | 770 | // spin = Rotate this many degrees around the Z axis after anchor. See [spin](attachments.scad#subsection-spin). Default: `0`
|
771 | 771 | // orient = Vector to rotate top towards, after spin. See [orient](attachments.scad#subsection-orient). Default: `UP`
|
772 |
| -// $slop = The printer-specific slop value, which adds clearance (`4*$slop`) to internal threads. |
| 772 | +// $slop = The printer-specific slop value, which adds clearance (`2*$slop`) to internal threads. |
773 | 773 | // Example(2D):
|
774 | 774 | // projection(cut=true)
|
775 | 775 | // acme_threaded_rod(d=10, l=15, pitch=2, orient=BACK);
|
@@ -881,7 +881,7 @@ module acme_threaded_rod(
|
881 | 881 | // anchor = Translate so anchor point is at origin (0,0,0). See [anchor](attachments.scad#subsection-anchor). Default: `CENTER`
|
882 | 882 | // spin = Rotate this many degrees around the Z axis after anchor. See [spin](attachments.scad#subsection-spin). Default: `0`
|
883 | 883 | // orient = Vector to rotate top towards, after spin. See [orient](attachments.scad#subsection-orient). Default: `UP`
|
884 |
| -// $slop = The printer-specific slop value, which adds clearance (`4*$slop`) to internal threads. |
| 884 | +// $slop = The printer-specific slop value, which adds clearance (`2*$slop`) to internal threads. |
885 | 885 | // Examples(Med):
|
886 | 886 | // acme_threaded_nut(nutwidth=16, id=3/8*INCH, h=8, tpi=8, $slop=0.05);
|
887 | 887 | // acme_threaded_nut(nutwidth=16, id=3/8*INCH, h=10, tpi=12, starts=3, $slop=0.1, $fa=1, $fs=1, ibevel=false);
|
@@ -968,7 +968,7 @@ module acme_threaded_nut(
|
968 | 968 | // anchor = Translate so anchor point is at origin (0,0,0). See [anchor](attachments.scad#subsection-anchor). Default: `CENTER`
|
969 | 969 | // spin = Rotate this many degrees around the Z axis after anchor. See [spin](attachments.scad#subsection-spin). Default: `0`
|
970 | 970 | // orient = Vector to rotate top towards, after spin. See [orient](attachments.scad#subsection-orient). Default: `UP`
|
971 |
| -// $slop = The printer-specific slop value, which adds clearance (`4*$slop`) to internal threads. |
| 971 | +// $slop = The printer-specific slop value, which adds clearance (`2*$slop`) to internal threads. |
972 | 972 | // Example(2D): The straight gray rectangle reveals the tapered threads.
|
973 | 973 | // projection(cut=true) npt_threaded_rod(size=1/4, orient=BACK);
|
974 | 974 | // right(.533*INCH/2) color("gray") rect([2,0.5946*INCH],anchor=LEFT);
|
@@ -1108,7 +1108,7 @@ module npt_threaded_rod(
|
1108 | 1108 | // anchor = Translate so anchor point is at origin (0,0,0). See [anchor](attachments.scad#subsection-anchor). Default: `CENTER`
|
1109 | 1109 | // spin = Rotate this many degrees around the Z axis after anchor. See [spin](attachments.scad#subsection-spin). Default: `0`
|
1110 | 1110 | // orient = Vector to rotate top towards, after spin. See [orient](attachments.scad#subsection-orient). Default: `UP`
|
1111 |
| -// $slop = The printer-specific slop value, which adds clearance (`4*$slop`) to internal threads. |
| 1111 | +// $slop = The printer-specific slop value, which adds clearance (`2*$slop`) to internal threads. |
1112 | 1112 | // Example(2D):
|
1113 | 1113 | // projection(cut=true)
|
1114 | 1114 | // buttress_threaded_rod(d=10, l=15, pitch=2, orient=BACK);
|
@@ -1223,7 +1223,7 @@ module buttress_threaded_rod(
|
1223 | 1223 | // anchor = Translate so anchor point is at origin (0,0,0). See [anchor](attachments.scad#subsection-anchor). Default: `CENTER`
|
1224 | 1224 | // spin = Rotate this many degrees around the Z axis after anchor. See [spin](attachments.scad#subsection-spin). Default: `0`
|
1225 | 1225 | // orient = Vector to rotate top towards, after spin. See [orient](attachments.scad#subsection-orient). Default: `UP`
|
1226 |
| -// $slop = The printer-specific slop value, which adds clearance (`4*$slop`) to internal threads. |
| 1226 | +// $slop = The printer-specific slop value, which adds clearance (`2*$slop`) to internal threads. |
1227 | 1227 | // Examples(Med):
|
1228 | 1228 | // buttress_threaded_nut(nutwidth=16, id=8, h=8, pitch=1.25, left_handed=true, $slop=0.05, $fa=1, $fs=1);
|
1229 | 1229 | function buttress_threaded_nut(
|
@@ -1324,7 +1324,7 @@ module buttress_threaded_nut(
|
1324 | 1324 | // anchor = Translate so anchor point is at origin (0,0,0). See [anchor](attachments.scad#subsection-anchor). Default: `CENTER`
|
1325 | 1325 | // spin = Rotate this many degrees around the Z axis after anchor. See [spin](attachments.scad#subsection-spin). Default: `0`
|
1326 | 1326 | // orient = Vector to rotate top towards, after spin. See [orient](attachments.scad#subsection-orient). Default: `UP`
|
1327 |
| -// $slop = The printer-specific slop value, which adds clearance (`4*$slop`) to internal threads. |
| 1327 | +// $slop = The printer-specific slop value, which adds clearance (`2*$slop`) to internal threads. |
1328 | 1328 | // Example(2D):
|
1329 | 1329 | // projection(cut=true)
|
1330 | 1330 | // square_threaded_rod(d=10, l=15, pitch=2, orient=BACK);
|
@@ -1432,7 +1432,7 @@ module square_threaded_rod(
|
1432 | 1432 | // anchor = Translate so anchor point is at origin (0,0,0). See [anchor](attachments.scad#subsection-anchor). Default: `CENTER`
|
1433 | 1433 | // spin = Rotate this many degrees around the Z axis after anchor. See [spin](attachments.scad#subsection-spin). Default: `0`
|
1434 | 1434 | // orient = Vector to rotate top towards, after spin. See [orient](attachments.scad#subsection-orient). Default: `UP`
|
1435 |
| -// $slop = The printer-specific slop value, which adds clearance (`4*$slop`) to internal threads. |
| 1435 | +// $slop = The printer-specific slop value, which adds clearance (`2*$slop`) to internal threads. |
1436 | 1436 | // Examples(Med):
|
1437 | 1437 | // square_threaded_nut(nutwidth=16, id=10, h=10, pitch=2, starts=2, $slop=0.1, $fn=32);
|
1438 | 1438 | function square_threaded_nut(
|
@@ -1527,7 +1527,7 @@ module square_threaded_nut(
|
1527 | 1527 | // anchor = Translate so anchor point is at origin (0,0,0). See [anchor](attachments.scad#subsection-anchor). Default: `CENTER`
|
1528 | 1528 | // spin = Rotate this many degrees around the Z axis after anchor. See [spin](attachments.scad#subsection-spin). Default: `0`
|
1529 | 1529 | // orient = Vector to rotate top towards, after spin. See [orient](attachments.scad#subsection-orient). Default: `UP`
|
1530 |
| -// $slop = The printer-specific slop value, which adds clearance (`4*$slop`) to internal threads. |
| 1530 | +// $slop = The printer-specific slop value, which adds clearance (`2*$slop`) to internal threads. |
1531 | 1531 | // Example(2D): Thread Profile, ball_diam=4, ball_arc=100
|
1532 | 1532 | // projection(cut=true) ball_screw_rod(d=10, l=15, pitch=5, ball_diam=4, ball_arc=100, orient=BACK, $fn=24, blunt_start=false);
|
1533 | 1533 | // Example(2D): Thread Profile, ball_diam=4, ball_arc=120
|
@@ -1616,8 +1616,8 @@ module ball_screw_rod(
|
1616 | 1616 | // .
|
1617 | 1617 | // If internal is true then produce a thread mask to difference from an object. When internal is true the rod
|
1618 | 1618 | // diameter is enlarged to correct for the polygonal nature of circles to ensure that the internal diameter is the
|
1619 |
| -// specified size. The diameter is also increased by `4 * $slop` to create clearance for threading by allowing a `2 * |
1620 |
| -// $slop` gap on each side. If bevel is set to true and internal is false then the ends of the rod will be beveled. |
| 1619 | +// specified size. The diameter is also increased by `2 * $slop` to create clearance for threading by allowing a |
| 1620 | +// `$slop` gap on each side. If bevel is set to true and internal is false then the ends of the rod will be beveled. |
1621 | 1621 | // When bevel is true and internal is true the ends of the rod will be filled in so that the rod mask will create a
|
1622 | 1622 | // bevel when subtracted from an object. The bevel is at 45 deg and is the depth of the threads.
|
1623 | 1623 | // .
|
@@ -1661,7 +1661,7 @@ module ball_screw_rod(
|
1661 | 1661 | // anchor = Translate so anchor point is at origin (0,0,0). See [anchor](attachments.scad#subsection-anchor). Default: `CENTER`
|
1662 | 1662 | // spin = Rotate this many degrees around the Z axis after anchor. See [spin](attachments.scad#subsection-spin). Default: `0`
|
1663 | 1663 | // orient = Vector to rotate top towards, after spin. See [orient](attachments.scad#subsection-orient). Default: `UP`
|
1664 |
| -// $slop = The printer-specific slop value, which adds clearance (`4*$slop`) to internal threads. |
| 1664 | +// $slop = The printer-specific slop value, which adds clearance (`2*$slop`) to internal threads. |
1665 | 1665 | // Example(2DMed): Example Tooth Profile
|
1666 | 1666 | // pitch = 2;
|
1667 | 1667 | // depth = pitch * cos(30) * 5/8;
|
@@ -1741,7 +1741,7 @@ module generic_threaded_rod(
|
1741 | 1741 | assert(is_undef(bevel2) || is_num(bevel2) || is_bool(bevel2) || bevel2=="reverse", "bevel2/bevel must be a number, boolean or \"reverse\"");
|
1742 | 1742 | sides = quantup(segs(max(r1,r2)), starts);
|
1743 | 1743 | rsc = internal? (1/cos(180/sides)) : 1; // Internal radius adjusted for faceting
|
1744 |
| - islop = internal? 2*get_slop() : 0; |
| 1744 | + islop = internal? get_slop() : 0; |
1745 | 1745 | r1adj = r1 * rsc + islop;
|
1746 | 1746 | r2adj = r2 * rsc + islop;
|
1747 | 1747 |
|
@@ -2004,7 +2004,7 @@ module generic_threaded_rod(
|
2004 | 2004 | // anchor = Translate so anchor point is at origin (0,0,0). See [anchor](attachments.scad#subsection-anchor). Default: `CENTER`
|
2005 | 2005 | // spin = Rotate this many degrees around the Z axis after anchor. See [spin](attachments.scad#subsection-spin). Default: `0`
|
2006 | 2006 | // orient = Vector to rotate top towards, after spin. See [orient](attachments.scad#subsection-orient). Default: `UP`
|
2007 |
| -// $slop = The printer-specific slop value, which adds clearance (`4*$slop`) to internal threads. |
| 2007 | +// $slop = The printer-specific slop value, which adds clearance (`2*$slop`) to internal threads. |
2008 | 2008 | function generic_threaded_nut(
|
2009 | 2009 | nutwidth,
|
2010 | 2010 | id,
|
@@ -2068,7 +2068,7 @@ module generic_threaded_nut(
|
2068 | 2068 | difference() {
|
2069 | 2069 | _nutshape(nutwidth,h, shape,bevel1,bevel2);
|
2070 | 2070 | if (pitch==0)
|
2071 |
| - cyl(l=h+extra, d1=full_id1+4*get_slop(), d2=full_id2+4*get_slop(), |
| 2071 | + cyl(l=h+extra, d1=full_id1+2*get_slop(), d2=full_id2+2*get_slop(), |
2072 | 2072 | chamfer1=ibevel1?-IBEV*full_id1:undef,
|
2073 | 2073 | chamfer2=ibevel2?-IBEV*full_id2:undef);
|
2074 | 2074 | else
|
|
0 commit comments