summaryrefslogtreecommitdiff
path: root/screw_hole.scad
blob: 5cf99a80ea22802fab303a7e16fb3873001ceeda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
include <parameters.scad>

module screw_hole(
  screw_diameter = rod_diameter,
  nut_diameter = nut_diameter,
  nut_depth=0
) {
  translate([0, 0, nut_depth - epsilon]) {
    // thread
    cylinder(h=large, r=screw_diameter / 2 + pla_epsilon, $fs=0.1);

    // nut or screw head
    mirror([0, 0, 1]) cylinder(h=large, r=nut_diameter / 2 + pla_epsilon, $fs=0.1);
  }
}

screw_hole(nut_depth=1);
contact: Jan Huwald // Impressum