chiark / gitweb /
818b5a2f3fdb7f0aeb65ad45beecf3446ee574ca
[reprap-play.git] / axlepin.scad
1 // -*- C -*-
2
3 function AxlePin_holerad() = 2;
4
5 module AxlePin(axlerad, pinlen, holerad=2, tabthick=5, slop=0.5){
6   pinr = holerad - slop;
7   intersection(){
8     translate([0, 0, pinr*0.7]) {
9       translate([0, -pinlen/2, 0]) rotate([-90,0,0])
10         cylinder(r=pinr, h=pinlen, $fn=10);
11       translate([-tabthick, axlerad, -holerad])
12         cube([tabthick*2, holerad*2, holerad*2]);
13     }
14     translate([-50,-50,0]) cube([100,100,50]);
15   }
16 }
17
18 function Washer_thick() = 1.2;
19
20 module Washer(axlerad, washerrad, thick=1.2, slop=0.5){
21   difference(){
22     cylinder(h=thick, r=washerrad);
23     translate([0,0,-1]) cylinder(h=thick+2, r=axlerad+slop);
24   }
25 }