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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
|
<html><head>
<title>Fillet Documentation</title>
<style type="text/css">
hr {color: sienna}
p {margin-left: 20px}
</style>
</head>
<body>
<h1>Fillet Documentation</h1>
<h2>Introduction</h2>
<b>Fillet</b> is a python script that bevels or fillets gcode, to provide smooth extruder movement. It can either bevel, arc segment, arc point or arc radius. After either bevel or arc segment, only linear commands are added. After arc point or arc radius, the linear gcode move commands are transformed into respectively helical arc point or arc radius commands.
<br>
<h2>Example</h2>
<p>This example bevels and fillets the gcode file Hollow Square.gcode. This example is run in a terminal in the folder which contains Hollow Square.gcode and fillet.py.</p>
<pre><p>
>>> import reprap.fillet as fillet
Fillet has been imported.
The gcode files in this directory that are not already beveled or filleted are the following:
['Hollow Square.gcode']
>>> fillet.arcPoint()
File Hollow Square.gcode is being filleted into arc points.
( GCode generated by March 29,2007 Skeinforge )
( Extruder Initialization )
..
many lines of gcode
..
The arc point file is saved as Hollow Square_arc_point.gcode
>>> fillet.arcPointFile("Hollow Square.gcode")
File Hollow Square.gcode is being filleted into arc points.
..
The arc point file is saved as Hollow Square_arc_point.gcode
>>> fillet.arcPointFiles(["Hollow Square.gcode"])
File Hollow Square.gcode is being filleted into arc points.
..
The arc point file is saved as Hollow Square_arc_point.gcode
>>> fillet.arcPointText("
( GCode generated by March 29,2007 Skeinforge )
( Extruder Initialization )
..
many lines of gcode
..
")
( GCode generated by March 29,2007 Skeinforge )\n( Extruder Initialization )\n
..
many lines of gcode
..
>>> fillet.arcRadius()
File Hollow Square.gcode is being filleted into arc radiuses.
..
The arc radius file is saved as Hollow Square_arc_radius.gcode
>>> fillet.arcRadiusFile("Hollow Square.gcode")
File Hollow Square.gcode is being filleted into arc radiuses.
..
The arc radius file is saved as Hollow Square_arc_radius.gcode
>>> fillet.arcRadiusFiles(["Hollow Square.gcode"])
File Hollow Square.gcode is being filleted into arc radiuses.
..
The arc radius file is saved as Hollow Square_arc_radius.gcode
>>> fillet.arcRadiusText("
( GCode generated by March 29,2007 Skeinforge )
( Extruder Initialization )
..
many lines of gcode
..
")
( GCode generated by March 29,2007 Skeinforge )\n( Extruder Initialization )\n
..
many lines of gcode
..
>>> fillet.arcSegment()
File Hollow Square.gcode is being arc segmented.
..
The arc segment file is saved as Hollow Square_arc_segment.gcode
>>> fillet.arcSegmentFile("Hollow Square.gcode")
File Hollow Square.gcode is being arc segmented.
..
The arc segment file is saved as Hollow Square_arc_segment.gcode
>>> fillet.arcSegmentFiles(["Hollow Square.gcode"])
File Hollow Square.gcode is being arc segmented.
..
The arc segment file is saved as Hollow Square_arc_segment.gcode
>>> fillet.arcSegmentText("
( GCode generated by March 29,2007 Skeinforge )
( Extruder Initialization )
..
many lines of gcode
..
")
( GCode generated by March 29,2007 Skeinforge )\n( Extruder Initialization )\n
..
many lines of gcode
..
>>> fillet.bevel()
File Hollow Square.gcode is being beveled.
..
The beveled file is saved as Hollow Square_bevel.gcode
>>> fillet.bevelFile("Hollow Square.gcode")
File Hollow Square.gcode is being beveled.
..
The beveled file is saved as Hollow Square_bevel.gcode
>>> fillet.bevelFiles(["Hollow Square.gcode"])
File Hollow Square.gcode is being beveled.
..
The beveled file is saved as Hollow Square_bevel.gcode
>>> fillet.bevelText("
( GCode generated by March 29,2007 Skeinforge )
( Extruder Initialization )
..
many lines of gcode
..
")
( GCode generated by March 29,2007 Skeinforge )\n( Extruder Initialization )\n
..
many lines of gcode
..
</p></pre>
<br>
<h2>Arc Point Commands</h2>
<h3>arcPoint</h3>
<p>Fillet a gcode linear move file into a helical point move file.<br>
<b>fillet.arcPoint( filename = '' )</b><br>
<ul><li><i>filename</i> - Name of the file. If no filename is specified, fillet all the unmodified gcode files in this folder.</li>
</ul>
Returns: Nothing<br></p>
<h3>arcPointFile</h3>
<p>Fillet a gcode linear move file into a helical point move file.<br>
<b>fillet.arcPointFile( filename )</b><br>
<ul><li><i>filename</i> - Name of the file.</li>
</ul>
Returns: Nothing<br></p>
<h3>arcPointFiles</h3>
<p>Fillet gcode linear move files into helical point move files.<br>
<b>fillet.arcPointFiles( filenames )</b><br>
<ul><li><i>filenames</i> - List of filenames.</li>
</ul>
Returns: Nothing<br></p>
<br>
<h3>arcPointText</h3>
<p>Fillet a gcode linear move text into a helical point move gcode text.<br>
<b>fillet.arcPointText( gcodeText )</b><br>
<ul><li><i>gcodeText</i> - Gcode text.</li>
</ul>
Returns: Helical point move gcode text<br></p>
<h2>Arc Radius Commands</h2>
<h3>arcRadius</h3>
<p>Fillet a gcode linear move file into a helical radius move file.<br>
<b>fillet.arcRadius( filename = '' )</b><br>
<ul><li><i>filename</i> - Name of the file. If no filename is specified, fillet all the unmodified gcode files in this folder.</li>
</ul>
Returns: Nothing<br></p>
<h3>arcRadiusFile</h3>
<p>Fillet a gcode linear move file into a helical radius move file.<br>
<b>fillet.arcRadiusFile( filename )</b><br>
<ul><li><i>filename</i> - Name of the file.</li>
</ul>
Returns: Nothing<br></p>
<h3>arcRadiusFiles</h3>
<p>Fillet gcode linear move files into helical radius move files.<br>
<b>fillet.arcRadiusFiles( filenames )</b><br>
<ul><li><i>filenames</i> - List of filenames.</li>
</ul>
Returns: Nothing<br></p>
<br>
<h3>arcRadiusText</h3>
<p>Fillet a gcode linear move text into a helical radius move gcode text.<br>
<b>fillet.arcRadiusText( gcodeText )</b><br>
<ul><li><i>gcodeText</i> - Gcode text.</li>
</ul>
Returns: Helical radius move gcode text<br></p>
<h2>Arc Segment Commands</h2>
<h3>arcSegment</h3>
<p>Fillet a gcode linear move file into an arc segment linear move file.<br>
<b>fillet.arcSegment( filename = '' )</b><br>
<ul><li><i>filename</i> - Name of the file. If no filename is specified, fillet all the unmodified gcode files in this folder.</li>
</ul>
Returns: Nothing<br></p>
<h3>arcSegmentFile</h3>
<p>Fillet a gcode linear move file into an arc segment linear move file.<br>
<b>fillet.arcSegmentFile( filename )</b><br>
<ul><li><i>filename</i> - Name of the file.</li>
</ul>
Returns: Nothing<br></p>
<h3>arcSegmentFiles</h3>
<p>Fillet gcode linear move files into arc segment linear move files.<br>
<b>fillet.arcSegmentFiles( filenames )</b><br>
<ul><li><i>filenames</i> - List of filenames.</li>
</ul>
Returns: Nothing<br></p>
<br>
<h3>arcSegmentText</h3>
<p>Fillet a gcode linear move text into an arc segment linear move gcode text.<br>
<b>fillet.arcSegmentText( gcodeText )</b><br>
<ul><li><i>gcodeText</i> - Gcode text.</li>
</ul>
Returns: Arc segment radius move gcode text<br></p>
<h2>Bevel Commands</h2>
<h3>bevel</h3>
<p>Bevel a gcode linear move file.<br>
<b>fillet.bevel( filename = '' )</b><br>
<ul><li><i>filename</i> - Name of the file. If no filename is specified, bevel all the unmodified gcode files in this folder.</li>
</ul>
Returns: Nothing<br></p>
<h3>bevelFile</h3>
<p>Bevel a gcode linear move file.<br>
<b>fillet.bevelFile( filename )</b><br>
<ul><li><i>filename</i> - Name of the file.</li>
</ul>
Returns: Nothing<br></p>
<h3>bevelFiles</h3>
<p>Bevel gcode linear move files.<br>
<b>fillet.bevelFiles( filenames )</b><br>
<ul><li><i>filenames</i> - List of filenames.</li>
</ul>
Returns: Nothing<br></p>
<h3>bevelText</h3>
<p>Bevel a gcode linear move text.<br>
<b>fillet.bevelText( gcodeText )</b><br>
<ul><li><i>gcodeText</i> - Gcode text.</li>
</ul>
Returns: Beveled gcode text<br></p>
<br>
</body></html>
|