From 267184607e0d98978855e7612c313dbafc047e26 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 27 Apr 2025 23:19:43 +0100 Subject: [PATCH] thread-internal-test-multi: start Signed-off-by: Ian Jackson --- thread-internal-test-multi.scad | 45 +++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 thread-internal-test-multi.scad diff --git a/thread-internal-test-multi.scad b/thread-internal-test-multi.scad new file mode 100644 index 0000000..a37b709 --- /dev/null +++ b/thread-internal-test-multi.scad @@ -0,0 +1,45 @@ +// -*- C -*- + +include +include + +// https://en.wikipedia.org/wiki/ISO_metric_screw_thread + +// M6 +thread_nom = 4; +thread_pitch = 0.70; +head_size = 10; + +thread_len = 12.5; +base_th = 1.5; +base_sz = [40, head_size]; + +$test = false; + +// calculated + +base_dia = head_size / cos(30); + +module ScrewThread(){ + translate([0, 0, -0.1]) + render() + metric_thread(diameter=thread_nom + $thread_slop, pitch=thread_pitch, + leadin=1, internal=true, + test=$test, length=thread_len + 0.1); +} + +module TestThread(){ + difference(){ + union(){ + linextr(-base_th, 0) + square(center=true, base_sz); + + linextr(-base_th, thread_len - 0.1) + circle(r= base_dia/2, $fn=6); + } + + ScrewThread(); + } +} + +TestThread($thread_slop = 0.375); -- 2.30.2