-
Notifications
You must be signed in to change notification settings - Fork 2
/
votive_center_struts.hfd
133 lines (133 loc) · 4.41 KB
/
votive_center_struts.hfd
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
{
"imports": [
{"path": "designs/common/rectangle.hfd"},
{"path": "designs/common/circle_with_center_rectangle.hfd"},
{
"path": "designs/svg/candle_holder_gus.svg",
"type": "svg",
"alias": "side_view_outline_svg"
}
],
"params": {
"offset": ".0035",
"material_width": 20,
"material_height": 11,
"material_thickness": 0.2,
"candle_radius": 0.75,
"candle_height": 0.6,
"votive_height": 5,
"strut_width": ".3",
"side_view_outline": "side_view_outline_svg"
},
"parts": [
{
"label": {
"text": "votive_top"
},
"part_transformers": [
{
"type" : "lathe",
"padding_bottom": "votive_height - candle_height",
"lathe_variable_name": "top_lathe_votive",
"repeat": {
"type": "group",
"components": [
{
"type": "draw",
"commands": [
{
"command": "circle",
"radius": "lathe__width / 2"
},
// cut out the candle hole
{
"command": "move",
"to": "(lathe__width / 2) - candle_radius, (lathe__width / 2) - candle_radius"
},
{
"command": "circle",
"radius": "candle_radius"
}
]
}
]
}
}
],
"components": [
// Here we draw the outline
{
"transforms": [
{
"type": "scale",
"height": "votive_height"
}
],
"type": "draw",
"commands": [
{
"command": "svg",
"svg": "side_view_outline"
}
]
}
]
},
// draw the bottom,
// this is a copy paste of the top, only padding change and this
// does not have the candle hole cutout
{
"label": {
"text": "votive_bottom"
},
"part_transformers": [
{
"type" : "lathe",
"padding_top" : "candle_height",
"lathe_variable_name": "bottom_lathe_votive",
"repeat": {
"type": "group",
"components": [
{
"type": "circle_with_center_rectangle",
"radius": "lathe__width / 2",
"hole_width": "strut_width",
"hole_height": "material_thickness"
}
]
}
}
],
"components": [
// Here we draw the outline
{
"transforms": [
{
"type": "scale",
"height": "votive_height"
}
],
"type": "draw",
"commands": [
{
"command": "svg",
"svg": "side_view_outline"
}
]
}
]
},
{
"repeat": {
"total" : "1"
},
"components":[
{
"type": "rectangle",
"width": "strut_width",
"height" :"bottom_lathe_votive__total_height"
}
]
}
]
}