chiark / gitweb /
air-hockey-puck: wip
[reprap-play.git] / thread-external-test.scad
1 // -*- C -*-
2
3 include <threads.scad>
4 include <utils.scad>
5
6 // https://en.wikipedia.org/wiki/ISO_metric_screw_thread
7
8 // M6
9 thread_nom = 6;
10 thread_pitch = 1.00;
11 thread_act = thread_nom - 0.300;
12 head_size = 10;
13
14 thread_len = 12.5;
15 base_th = 1.5;
16
17 $test = false;
18
19 // calculated
20
21 base_dia = head_size / cos(30);
22
23 module MachineScrew(){
24   translate([0, 0, -0.1])
25     render()
26     metric_thread(diameter=thread_act, pitch=thread_pitch,
27                   leadin=1, internal=false,
28                   test=$test, length=thread_len + 0.1);
29   linextr(-base_th, 0)
30     circle(r= base_dia/2, $fn=6);
31 }
32
33 MachineScrew();