forked from SebKuzminsky/pycam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
yaml_flow_example.yml
209 lines (200 loc) · 6.79 KB
/
yaml_flow_example.yml
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
---
# example processing flow description (not implemented)
models:
model1:
source:
type: file
location: samples/Box0.stl
transformations:
- action: scale
scale_target: factor
axes:
x: 1.25
- action: scale
scale_target: factor
axes: 0.7
- action: scale
scale_target: size
axes:
x: 10
- action: shift
shift_target: distance
axes:
x: -20
- action: shift
shift_target: align_max
axes:
z: 0
- action: shift
shift_target: align_min
axes: [10, 20, 0]
- action: shift
shift_target: center
axes:
x: 50
- action: rotate
center: [10, 10, 0]
vector: [0, 0, 1]
angle: 90
- action: projection
center:
z: 0
vector:
x: 0
y: 0
z: 1
- action: multiply_matrix
matrix:
- [1, 0, 0]
- [0, 1, 0]
- [0, 0, -1]
model2:
source:
type: copy
original: model1
transformations:
- action: toggle_polygon_directions
- action: revise_polygon_directions
- action: extrude
shape: bulge
height: 1.0
width: 2.3
accuracy: 0.2
model3:
source:
type: url
location: http://foo.example.org/baz.stl
tools:
tool1:
shape: flat_bottom
tool_id: 1
diameter: 3
feed: 300
spindle:
spin_up_enabled: true
spin_up_delay: 3
speed: 1200
processes:
process_slicing:
strategy: slice
path_pattern: grid
overlap: 0.10
step_down: 1.0
grid_direction: x
milling_style: ignore
process_engrave:
strategy: engrave
step_down: 1.0
trace_models:
- model2
bounds:
bounds1:
specification: absolute
lower:
x: -10
y: 0
z: -5
upper:
x: 30
y: 20
z: 0
bounds2:
specification: margins
reference_models:
- model1
lower:
x: 10%
y: 10%
z: 0
upper:
x: 10%
y: 10%
z: 5
tasks:
task1:
type: milling
tool: tool1
process: process_slicing
bounds: bounds1
collision_models:
- model1
task2:
type: milling
tool: tool1
process: process_engrave
bounds: bounds2
toolpaths:
toolpath1:
source:
type: task
task: task1
transformations:
- action: crop
lower:
x: 0
y: 0
upper:
x: 30
y: 40
- action: clone
offset: [20, 110%, 0]
clone_count: 1
- action: shift
shift_target: align_min
axes:
x: 0
y: 0
- action: shift
shift_target: align_max
axes: [null, null, 0]
toolpath2:
source:
type: copy
original: toolpath1
transformations:
- action: clone
offset:
x: 102%
count: 5
- action: clone
offset:
y: 105%
count: 3
export_settings:
tp_settings1:
gcode:
safety_height: 25
plunge_feedrate: 50
step_width:
x: 0.1
y: 0.1
z: 0.1
corner_style:
mode: optimize_tolerance
naive_tolerance: 0.1
motion_tolerance: 0.05
exports:
export1:
source:
type: toolpath
toolpaths:
- toolpath1
format:
type: gcode
dialect: linuxcnc
comment: Complete grid of 5x3 toolpaths.
export_settings: tp_settings1
target:
type: file
location: grid_5x3.ngc
export2:
source:
type: toolpath
toolpaths:
- toolpath1
- toolpath2
format:
type: preview_2d
filetype: png
target:
type: clipboard