chiark / gitweb /
belt-slot-cut-jig: crew punch shape defined
[reprap-play.git] / belt-slot-cut-jig.scad
1 // -*- C -*-
2
3 crewpunch_shape =
4   [[  6, [0.6, 6.0], [1.6, 12.3] ],
5    [  8, [1.1, 6.2], [1.9, 12.5] ],
6    [ 10, [1.6, 6.5], [2.1, 12.8] ],
7    [ 12, [1.8, 6.6], [2.3, 12.7] ],
8    [ 14, [2.1, 6.8], [2.6, 13.0] ],
9    [ 16, [2.4, 6.9], [2.7, 13.2] ]];
10
11 module CrewPunch(){
12   hull(){
13     for(layer=crewpunch_shape){
14       translate([0,0, layer[0]]){
15         for(xind=[0,1]) //translate([xind?0:1,0,0])
16           for(yind=[0,1]) //translate([0,yind?0.5:0,0])
17             mirror([xind?1:0,0,0]) mirror([0,yind?0:1,0]){
18               translate([-0.1,-0.1,-0.1])
19                 cube([0.1 + layer[2][xind],
20                       0.1 + layer[1][yind],
21                       0.2]);
22             }
23       }
24     }
25   }
26 }
27
28 CrewPunch();