Skip to content

Commit

Permalink
Add washer
Browse files Browse the repository at this point in the history
  • Loading branch information
lestrrat committed Jul 7, 2023
1 parent f029e71 commit 87a2f92
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/threads/threads.scad
Original file line number Diff line number Diff line change
Expand Up @@ -601,4 +601,13 @@ module MetricBoltSet(diameter, length, quantity=1) {
translate([4*diameter, i*4*diameter, 0]) MetricNut(diameter);
translate([8*diameter, i*4*diameter, 0]) MetricWasher(diameter);
}
}

// washer creates cylindrical model with a hole in the middle,
// so it can be used as a washer or a spacer.
module washer(outer_radius, inner_radius, height, clearance=0.2, inner_fn=400, outer_fn=400) {
render() difference() {
cylinder(r=outer_radius, h=height, $fn=outer_fn);
cylinder(r=inner_radius+clearance, h=height, $fn=inner_fn);
}
}

0 comments on commit 87a2f92

Please sign in to comment.