chiark / gitweb /
belt-slot-cut-jig: crew punch shape slop etc.
[reprap-play.git] / belt-slot-cut-jig.scad
1 // -*- C -*-
2
3 crewpunch_slop = 0.3;
4
5 // from careful measurement
6
7 crewpunch_shape =
8   [[  6, [0.6, 6.0], [1.6, 12.3] ],
9    [  8, [1.1, 6.2], [1.9, 12.5] ],
10    [ 10, [1.6, 6.5], [2.1, 12.8] ],
11    [ 12, [1.8, 6.6], [2.3, 12.7] ],
12    [ 14, [2.1, 6.8], [2.6, 13.0] ],
13    [ 16, [2.4, 6.9], [2.7, 13.2] ]];
14
15 crewpunch_systematic_size_error = +0.36;
16
17 crewpunch_min_y = 4.7 - crewpunch_systematic_size_error;
18
19 // objects
20
21 module CrewPunch(){
22   ourslop = crewpunch_slop - crewpunch_systematic_size_error;
23   hull(){
24     for(layer=crewpunch_shape){
25       translate([0,0, layer[0]]){
26         for(xind=[0,1]) //translate([xind?0:1,0,0])
27           for(yind=[0,1]) //translate([0,yind?0.5:0,0])
28             mirror([xind?1:0,0,0]) mirror([0,yind?0:1,0]){
29               translate([-0.1,-0.1,-0.1])
30                 cube([0.1 + layer[2][xind] + ourslop,
31                       0.1 + layer[1][yind] + ourslop,
32                       0.2]);
33             }
34       }
35     }
36   }
37 }
38
39 CrewPunch();