-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpawn.hfd
More file actions
76 lines (76 loc) · 2.19 KB
/
pawn.hfd
File metadata and controls
76 lines (76 loc) · 2.19 KB
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
{
"imports": [
{
"path": "designs/common/rectangle_with_center_hole.hfd"
},
{
"path": "designs/common/rectangle.hfd"
},
{
"path": "designs/svg/lathe_pawn2.svg",
"type": "svg",
"alias": "pawn"
}
],
"params": {
"offset": ".0035",
"material_width": 20,
"material_height": 12,
"material_thickness": 0.25,
"pawn_height": 2
},
"parts": [
{
"label": {
"text": "pwn"
},
"part_transformers": [
{
"type": "lathe",
"lathe_variable_name": "lathe_pawn",
"repeat": {
"type": "draw",
"commands": [
{
"command": "circle",
"radius": "lathe__width / 2"
}
]
},
"repeat_outside": {
"type": "rectangle",
"width": "lathe_pawn__max_width + (2 * material_thickness)",
"height": "lathe_pawn__max_width + (2 * material_thickness)"
}
}
],
"components": [
{
"transforms": [
{
"type": "scale",
"height": "pawn_height"
}
],
"type": "draw",
"commands": [
{
"command": "svg",
"svg": "pawn"
}
]
}
]
},
{
"components": [
{
"id": "base",
"type": "rectangle",
"width": "lathe_pawn__max_width + (2 * material_thickness)",
"height": "lathe_pawn__max_width + (2 * material_thickness)"
}
]
}
]
}