Skip to content

Commit 0ec7303

Browse files
committed
Improved threading.scad example images.
1 parent fe3d3b9 commit 0ec7303

File tree

1 file changed

+37
-20
lines changed

1 file changed

+37
-20
lines changed

threading.scad

Lines changed: 37 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,16 @@ use <math.scad>
6767
// orient = Orientation of the rod. Use the `ORIENT_` constants from `constants.scad`. Default: `ORIENT_Z`.
6868
// align = Alignment of the rod. Use the `V_` constants from `constants.scad`. Default: `V_CENTER`.
6969
// center = If given, overrides `align`. A true value sets `align=V_CENTER`, false sets `align=ALIGN_POS`.
70-
// Examples:
71-
// trapezoidal_threaded_rod(d=10, l=100, pitch=2, thread_angle=15, $fn=32);
70+
// Examples(Med):
71+
// trapezoidal_threaded_rod(d=10, l=40, pitch=2, thread_angle=15, $fn=32);
7272
// trapezoidal_threaded_rod(d=3/8*25.4, l=20, pitch=1/8*25.4, thread_angle=29, $fn=32);
7373
// trapezoidal_threaded_rod(d=60, l=16, pitch=8, thread_depth=3, thread_angle=45, left_handed=true, $fa=2, $fs=2);
7474
// trapezoidal_threaded_rod(d=60, l=16, pitch=8, thread_depth=3, thread_angle=45, left_handed=true, starts=4, $fa=2, $fs=2);
7575
// trapezoidal_threaded_rod(d=16, l=40, pitch=2, thread_angle=30);
7676
// trapezoidal_threaded_rod(d=10, l=40, pitch=3, thread_angle=15, left_handed=true, starts=3, $fn=36);
77-
// trapezoidal_threaded_rod(d=25, l=100, pitch=10, thread_depth=8/3, thread_angle=50, starts=4, center=false, $fa=2, $fs=2);
78-
// trapezoidal_threaded_rod(d=50, l=75, pitch=8, thread_angle=30, starts=3, bevel=true);
79-
// trapezoidal_threaded_rod(l=25, d=10, pitch=2, thread_angle=15, starts=3, $fa=1, $fs=1, orient=ORIENT_X, align=ALIGN_POS);
77+
// trapezoidal_threaded_rod(d=25, l=40, pitch=10, thread_depth=8/3, thread_angle=50, starts=4, center=false, $fa=2, $fs=2);
78+
// trapezoidal_threaded_rod(d=50, l=35, pitch=8, thread_angle=30, starts=3, bevel=true);
79+
// trapezoidal_threaded_rod(l=25, d=10, pitch=2, thread_angle=15, starts=3, $fa=1, $fs=1, orient=ORIENT_X, anchor=UP);
8080
module trapezoidal_threaded_rod(
8181
d=10,
8282
l=100,
@@ -261,8 +261,8 @@ module trapezoidal_threaded_rod(
261261
// profile = The shape of a thread, if not a symmetric trapezoidal form. Given as a 2D path, where X is between -1/2 and 1/2, representing the pitch distance, and Y is 0 for the peak, and `-depth/pitch` for the valleys. The segment between the end of one thread profile and the start of the next is automatic, so the start and end coordinates should not both be at the same Y at X = ±1/2. This path is scaled up by the pitch size in both dimensions when making the final threading. This overrides the `thread_angle` and `thread_depth` options.
262262
// orient = Orientation of the nut. Use the `ORIENT_` constants from `constants.scad`. Default: `ORIENT_Z`.
263263
// align = Alignment of the nut. Use the `V_` constants from `constants.scad`. Default: `V_CENTER`.
264-
// Examples:
265-
// trapezoidal_threaded_nut(od=16, id=8, h=8, pitch=2, slop=0.2, align=V_UP);
264+
// Examples(Med):
265+
// trapezoidal_threaded_nut(od=16, id=8, h=8, pitch=2, slop=0.2, anchor=UP);
266266
// trapezoidal_threaded_nut(od=17.4, id=10, h=10, pitch=2, slop=0.2, left_handed=true);
267267
// trapezoidal_threaded_nut(od=17.4, id=10, h=10, pitch=2, thread_angle=15, starts=3, $fa=1, $fs=1);
268268
module trapezoidal_threaded_nut(
@@ -325,8 +325,12 @@ module trapezoidal_threaded_nut(
325325
// slop = printer slop calibration to allow for tight fitting of parts. Default: `PRINTER_SLOP`
326326
// orient = Orientation of the rod. Use the `ORIENT_` constants from `constants.scad`. Default: `ORIENT_Z`.
327327
// align = Alignment of the rod. Use the `V_` constants from `constants.scad`. Default: `V_CENTER`.
328-
// Examples:
329-
// threaded_rod(d=10, l=30, pitch=1.25, left_handed=true, $fa=1, $fs=1);
328+
// Example(2D):
329+
// projection(cut=true)
330+
// threaded_rod(d=10, l=15, pitch=2, orient=ORIENT_X);
331+
// Examples(Med):
332+
// threaded_rod(d=10, l=20, pitch=1.25, left_handed=true, $fa=1, $fs=1);
333+
// threaded_rod(d=25, l=20, pitch=2, $fa=1, $fs=1);
330334
module threaded_rod(
331335
d=10, l=100, pitch=2,
332336
left_handed=false,
@@ -382,7 +386,7 @@ module threaded_rod(
382386
// slop = printer slop calibration to allow for tight fitting of parts. default=0.2
383387
// orient = Orientation of the nut. Use the `ORIENT_` constants from `constants.scad`. Default: `ORIENT_Z`.
384388
// align = Alignment of the nut. Use the `V_` constants from `constants.scad`. Default: `V_CENTER`.
385-
// Examples:
389+
// Examples(Med):
386390
// threaded_nut(od=16, id=8, h=8, pitch=1.25, left_handed=true, slop=0.2, $fa=1, $fs=1);
387391
module threaded_nut(
388392
od=16, id=10, h=10,
@@ -426,8 +430,12 @@ module threaded_nut(
426430
// slop = printer slop calibration to allow for tight fitting of parts. default=0.2
427431
// orient = Orientation of the rod. Use the `ORIENT_` constants from `constants.scad`. Default: `ORIENT_Z`.
428432
// align = Alignment of the rod. Use the `V_` constants from `constants.scad`. Default: `V_CENTER`.
429-
// Examples:
430-
// buttress_threaded_rod(d=10, l=30, pitch=1.25, left_handed=true, $fa=1, $fs=1);
433+
// Example(2D):
434+
// projection(cut=true)
435+
// buttress_threaded_rod(d=10, l=15, pitch=2, orient=ORIENT_X);
436+
// Examples(Med):
437+
// buttress_threaded_rod(d=10, l=20, pitch=1.25, left_handed=true, $fa=1, $fs=1);
438+
// buttress_threaded_rod(d=25, l=20, pitch=2, $fa=1, $fs=1);
431439
module buttress_threaded_rod(
432440
d=10, l=100, pitch=2,
433441
left_handed=false,
@@ -518,7 +526,10 @@ module buttress_threaded_nut(
518526
// starts = The number of lead starts. Default = 1
519527
// orient = Orientation of the rod. Use the `ORIENT_` constants from `constants.scad`. Default: `ORIENT_Z`.
520528
// align = Alignment of the rod. Use the `V_` constants from `constants.scad`. Default: `V_CENTER`.
521-
// Examples:
529+
// Example(2D):
530+
// projection(cut=true)
531+
// metric_trapezoidal_threaded_rod(d=10, l=15, pitch=2, orient=ORIENT_X);
532+
// Examples(Med):
522533
// metric_trapezoidal_threaded_rod(d=10, l=30, pitch=2, left_handed=true, $fa=1, $fs=1);
523534
module metric_trapezoidal_threaded_rod(
524535
d=10, l=100, pitch=2,
@@ -557,7 +568,7 @@ module metric_trapezoidal_threaded_rod(
557568
// slop = printer slop calibration to allow for tight fitting of parts. default=0.2
558569
// orient = Orientation of the nut. Use the `ORIENT_` constants from `constants.scad`. Default: `ORIENT_Z`.
559570
// align = Alignment of the nut. Use the `V_` constants from `constants.scad`. Default: `V_CENTER`.
560-
// Examples:
571+
// Examples(Med):
561572
// metric_trapezoidal_threaded_nut(od=16, id=10, h=10, pitch=2, left_handed=true, bevel=true, $fa=1, $fs=1);
562573
module metric_trapezoidal_threaded_nut(
563574
od=17.4, id=10.5, h=10,
@@ -599,9 +610,12 @@ module metric_trapezoidal_threaded_nut(
599610
// bevel = if true, bevel the thread ends. Default: false
600611
// orient = Orientation of the rod. Use the `ORIENT_` constants from `constants.scad`. Default: `ORIENT_Z`.
601612
// align = Alignment of the rod. Use the `V_` constants from `constants.scad`. Default: `V_CENTER`.
602-
// Examples:
613+
// Example(2D):
614+
// projection(cut=true)
615+
// acme_threaded_rod(d=10, l=15, pitch=2, orient=ORIENT_X);
616+
// Examples(Med):
603617
// acme_threaded_rod(d=3/8*25.4, l=20, pitch=1/8*25.4, $fn=32);
604-
// acme_threaded_rod(d=10, l=40, pitch=2, starts=3, $fa=1, $fs=1);
618+
// acme_threaded_rod(d=10, l=30, pitch=2, starts=3, $fa=1, $fs=1);
605619
module acme_threaded_rod(
606620
d=10, l=100, pitch=2,
607621
thread_angle=14.5,
@@ -642,7 +656,7 @@ module acme_threaded_rod(
642656
// slop = printer slop calibration to allow for tight fitting of parts. default=0.2
643657
// orient = Orientation of the nut. Use the `ORIENT_` constants from `constants.scad`. Default: `ORIENT_Z`.
644658
// align = Alignment of the nut. Use the `V_` constants from `constants.scad`. Default: `V_CENTER`.
645-
// Examples:
659+
// Examples(Med):
646660
// acme_threaded_nut(od=16, id=3/8*25.4, h=8, pitch=1/8*25.4, slop=0.2);
647661
// acme_threaded_nut(od=16, id=10, h=10, pitch=2, starts=3, slop=0.2, $fa=1, $fs=1);
648662
module acme_threaded_nut(
@@ -685,8 +699,11 @@ module acme_threaded_nut(
685699
// starts = The number of lead starts. Default = 1
686700
// orient = Orientation of the rod. Use the `ORIENT_` constants from `constants.scad`. Default: `ORIENT_Z`.
687701
// align = Alignment of the rod. Use the `V_` constants from `constants.scad`. Default: `V_CENTER`.
688-
// Examples:
689-
// square_threaded_rod(d=10, l=30, pitch=2, starts=2, $fn=32);
702+
// Example(2D):
703+
// projection(cut=true)
704+
// square_threaded_rod(d=10, l=15, pitch=2, orient=ORIENT_X);
705+
// Examples(Med):
706+
// square_threaded_rod(d=10, l=20, pitch=2, starts=2, $fn=32);
690707
module square_threaded_rod(
691708
d=10, l=100, pitch=2,
692709
left_handed=false,
@@ -723,7 +740,7 @@ module square_threaded_rod(
723740
// slop = printer slop calibration to allow for tight fitting of parts. default=0.2
724741
// orient = Orientation of the nut. Use the `ORIENT_` constants from `constants.scad`. Default: `ORIENT_Z`.
725742
// align = Alignment of the nut. Use the `V_` constants from `constants.scad`. Default: `V_CENTER`.
726-
// Examples:
743+
// Examples(Med):
727744
// square_threaded_nut(od=16, id=10, h=10, pitch=2, starts=2, slop=0.15, $fn=32);
728745
module square_threaded_nut(
729746
od=17.4, id=10.5, h=10,

0 commit comments

Comments
 (0)