-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest_bed.scad
89 lines (76 loc) · 1.44 KB
/
test_bed.scad
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
include<vars.scad>
include<Path.scad>
include<Regulator.scad>
include<RegulatorEnvelope.scad>
include<FlipFlop.scad>
include<FlipFlopEnvelope.scad>
include<Switch.scad>
include<SwitchEnvelope.scad>
Test_Bed();
color([1, 0, 0]) Parts();
board_width = 200;
board_height = 250;
reservoir = [25, 205];
regulator = [175, 175];
flipflop = [120, 135];
switch = [80, 85];
well = [10, 10];
module Test_Bed()
{
difference()
{
union()
{
square([board_width, board_height]);
}
union()
{
translate(reservoir) rotate(-10)
{
square([ball_radius * 20, ball_radius * 4]);
}
translate(regulator)
{
RegulatorEnvelope();
Path(100, ball_radius * 6);
}
translate(flipflop)
{
FlipFlopEnvelope();
Path(-115, ball_radius * 6);
Path(115, ball_radius * 6);
rotate(-115) translate([0, ball_radius * 6])
{
Path(-45, ball_radius * 10);
}
}
translate(switch)
{
SwitchEnvelope();
translate([0, ball_radius])
{
Path(-115, ball_radius * 6);
rotate(-115) translate([0, ball_radius * 6])
{
Path(-45, ball_radius * 4);
}
Path(115, ball_radius * 6);
rotate(115) translate([0, ball_radius * 6])
{
Path(45, ball_radius * 4);
}
}
}
translate(well)
{
square([180, 40]);
}
}
}
}
module Parts()
{
translate(regulator) Regulator();
translate(flipflop) rotate() render() FlipFlop();
translate(switch) rotate() render() Switch();
}