-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathspring.scad
45 lines (34 loc) · 1.03 KB
/
spring.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
use <lib/spring.scad>
use <spacer.scad>
$fn = 30;
ARM_THICKNESS = 3.8;
ARMS_SPACING = 20;
DEBUG = false;
module spring(only_connection = false) {
thickness = ARM_THICKNESS;
offset = only_connection ? 10 : 0;
clear = 1.03;
if (!only_connection) {
difference() {
translate([0, 7, ARM_THICKNESS / 2]) {
cube(size = [14.2, 5, ARM_THICKNESS], center = true);
}
rotate([0, 90, -90]) {
translate([9.9, 0, -11.4]) {
scale([clear, clear, clear]) {
spacer(ARMS_SPACING + ARM_THICKNESS * 2, 15, ARM_THICKNESS);
}
if (DEBUG) {
%spacer(ARMS_SPACING + ARM_THICKNESS * 2, 15, ARM_THICKNESS);
}
}
}
}
difference() {
translate([0, -6, thickness / 2]) {
spring_square(fid=1, th=2, folds=6, lx=14.2, lz=thickness, drill=0);
}
}
}
}
spring();