summaryrefslogtreecommitdiff
path: root/lasttretrad.scad
blob: 6c9e2d8b205da9286f242f0c9466b77ad778018c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
use <wheel.scad>;

module frame() {
    l=3000;
    w=1000;
    h=160;
    translate([-l/2, -w/2, 0])
    cube([l, w, h]);
}

// specify (f)ront/(c)enter/(b)ack as -1/0/1 and (l)eft/(r)ight as -1/1
module wheel_position(fcb, lr) {
    translate([1300 * fcb, 450 * lr, -250])
    children();
}

// specify (f)ront/(b)ack and (l)eft/(r)ight as -1/1
module steered_wheel(fb=-1, lr=-1, rot=0) {
    rotate([90, 0, fb*rot])
    wheel();
}

// specify (l)eft/(r)ight as -1/1
module powered_wheel(lr=-1) {
    rotate([90])
    wheel();
}

module lasttretrad() {
    frame();
    
    for (lr = [-1,1])
    for (fb = [-1,1])
    wheel_position(fb, lr)
    steered_wheel(fb, lr, rot=30);
    
    for (lr = [-1,1])
    wheel_position(0, lr)
    powered_wheel(lr);
}

lasttretrad();
contact: Jan Huwald // Impressum