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
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
|
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module skeinforge_tools.craft_plugins.fill</title>
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.craft_plugins.html"><font color="#ffffff">craft_plugins</font></a>.fill</strong></big></big> ($Date: 2008/28/04 $)</font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/craft_plugins/fill.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/craft_plugins/fill.py</a></font></td></tr></table>
<p>
<a href="skeinforge_tools.craft_plugins.feed.html">Previous</a> / <a href="skeinforge_tools.craft_plugins.fillet.html">Next</a> / <a href="contents.html">Contents</a>
</p>
<p><tt><br>
Fill is a script to fill the perimeters of a gcode file.<br>
<br>
The fill manual page is at:<br>
<a href="http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Fill">http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Fill</a><br>
<br>
Allan Ecker aka The Masked Retriever has written the "Skeinforge Quicktip: Fill" at:<br>
<a href="http://blog.thingiverse.com/2009/07/21/mysteries-of-skeinforge-fill/">http://blog.thingiverse.com/2009/07/21/mysteries-of-skeinforge-fill/</a><br>
<br>
<br />
<a href="#Operation">Operation</a><br />
<a href="#Settings">Settings</a><br />
<a href="#Diaphragm">Diaphragm</a><br />
<a href="#Diaphragm Period">Diaphragm Period</a><br />
<a href="#Diaphragm Thickness">Diaphragm Thickness</a><br />
<a href="#Extra Shells">Extra Shells</a><br />
<a href="#Extra Shells on Alternating Solid Layers">Extra Shells on Alternating Solid Layers</a><br />
<a href="#Extra Shells on Base">Extra Shells on Base</a><br />
<a href="#Extra Shells on Sparse Layer">Extra Shells on Sparse Layer</a><br />
<a href="#Grid">Grid</a><br />
<a href="#Grid Extra Overlap">Grid Extra Overlap</a><br />
<a href="#Grid Junction Separation over Octogon Radius At End">Grid Junction Separation over Octogon Radius At End</a><br />
<a href="#Grid Junction Separation over Octogon Radius At Middle">Grid Junction Separation over Octogon Radius At Middle</a><br />
<a href="#Grid Junction Separation Band Height">Grid Junction Separation Band Height</a><br />
<a href="#Infill">Infill</a><br />
<a href="#Infill Pattern">Infill Pattern</a><br />
<a href="#Grid Hexagonal">Grid Hexagonal</a><br />
<a href="#Grid Rectangular">Grid Rectangular</a><br />
<a href="#Line">Line</a><br />
<a href="#Infill Begin Rotation">Infill Begin Rotation</a><br />
<a href="#Infill Odd Layer Extra Rotation">Infill Odd Layer Extra Rotation</a><br />
<a href="#Infill Begin Rotation Repeat">Infill Begin Rotation Repeat</a><br />
<a href="#Infill Perimeter Overlap">Infill Perimeter Overlap</a><br />
<a href="#Infill Solidity">Infill Solidity</a><br />
<a href="#Interior Infill Density over Exterior Density">Interior Infill Density over Exterior Density</a><br />
<a href="#Infill Width over Thickness">Infill Width over Thickness</a><br />
<a href="#Solid Surface Thickness">Solid Surface Thickness</a><br />
<a href="#Thread Sequence Choice">Thread Sequence Choice</a><br />
<a href="#Infill > Loops > Perimeter">Infill > Loops > Perimeter</a><br />
<a href="#Infill > Perimeter > Loops">Infill > Perimeter > Loops</a><br />
<a href="#Loops > Infill > Perimeter">Loops > Infill > Perimeter</a><br />
<a href="#Loops > Perimeter > Infill">Loops > Perimeter > Infill</a><br />
<a href="#Perimeter > Infill > Loops">Perimeter > Infill > Loops</a><br />
<a href="#Perimeter > Loops > Infill">Perimeter > Loops > Infill</a><br />
<a href="#Examples">Examples</a><br />
<br />
<a name="Operation" id="Operation"></a><h2>Operation</h2>
<hr>
The default 'Activate Fill' checkbox is off. When it is on, the functions described below will work, when it is off, the functions will not be called.<br>
<br>
<a name="Settings" id="Settings"></a><h2>Settings</h2>
<hr>
<a name="Diaphragm" id="Diaphragm"></a><h3>Diaphragm</h3>
The diaphragm is a solid group of layers, at regular intervals. It can be used with a sparse infill to give the object watertight, horizontal compartments and/or a higher shear strength.<br>
<br>
<a name="Diaphragm Period" id="Diaphragm Period"></a><h4>Diaphragm Period</h4>
Default is one hundred.<br>
<br>
Defines the number of layers between diaphrams.<br>
<br>
<a name="Diaphragm Thickness" id="Diaphragm Thickness"></a><h4>Diaphragm Thickness</h4>
Default is zero, because the diaphragm feature is rarely used.<br>
<br>
Defines the number of layers the diaphram is composed of.<br>
<br>
<a name="Extra Shells" id="Extra Shells"></a><h3>Extra Shells</h3>
The shells interior perimeter loops. Adding extra shells makes the object stronger & heavier.<br>
<br>
<a name="Extra Shells on Alternating Solid Layers" id="Extra Shells on Alternating Solid Layers"></a><h4>Extra Shells on Alternating Solid Layers</h4>
Default is two.<br>
<br>
Defines the number of extra shells, on the alternating solid layers.<br>
<br>
<a name="Extra Shells on Base" id="Extra Shells on Base"></a><h4>Extra Shells on Base</h4>
Default is one.<br>
<br>
Defines the number of extra shells on the bottom, base layer and every even solid layer after that. Setting this to a different value than the "Extra Shells on Alternating Solid Layers" means the infill pattern will alternate, creating a strong interleaved bond even if the perimeter loop shrinks.<br>
<br>
<a name="Extra Shells on Sparse Layer" id="Extra Shells on Sparse Layer"></a><h4>Extra Shells on Sparse Layer</h4>
Default is one.<br>
<br>
Defines the number of extra shells on the sparse layers. The solid layers are those at the top & bottom, and wherever the object has a plateau or overhang, the sparse layers are the layers in between.<br>
<br>
<a name="Grid" id="Grid"></a><h3>Grid</h3>
<a name="Grid Extra Overlap" id="Grid Extra Overlap"></a><h4>Grid Extra Overlap</h4>
Default is 0.1.<br>
<br>
Defines the amount of extra overlap added when extruding the grid to compensate for the fact that when the first thread going through a grid point is extruded, since there is nothing there yet for it to connect to it will shrink extra.<br>
<br>
<a name="Grid Junction Separation over Octogon Radius At End" id="Grid Junction Separation over Octogon Radius At End"></a><h4>Grid Junction Separation over Octogon Radius At End</h4>
Default is zero.<br>
<br>
Defines the ratio of the amount the grid square is increased in each direction over the extrusion width at the end, the default is zero. With a value of one or so the grid pattern will have large squares to go with the octogons.<br>
<br>
<a name="Grid Junction Separation over Octogon Radius At Middle" id="Grid Junction Separation over Octogon Radius At Middle"></a><h4>Grid Junction Separation over Octogon Radius At Middle</h4>
Default is zero.<br>
<br>
Defines the increase at the middle. If this value is different than the value at the end, the grid would have an accordion pattern, which would give it a higher shear strength.<br>
<br>
<a name="Grid Junction Separation Band Height" id="Grid Junction Separation Band Height"></a><h4>Grid Junction Separation Band Height</h4>
Default is ten.<br>
<br>
Defines the height of the bands of the accordion pattern.<br>
<br>
<a name="Infill" id="Infill"></a><h3>Infill</h3>
<a name="Infill Pattern" id="Infill Pattern"></a><h4>Infill Pattern</h4>
Default is 'Line', since it is quicker to generate and does not add extra movements for the extruder. The grid pattern has extra diagonal lines, so when choosing a grid option, set the infill solidity to 0.2 or less so that there is not too much plastic and the grid generation time, which increases with the third power of solidity, will be reasonable.<br>
<br>
<a name="Grid Hexagonal" id="Grid Hexagonal"></a><h5>Grid Hexagonal</h5>
When selected, the infill will be a hexagonal grid. Because the grid is made with threads rather than with molding or milling, only a partial hexagon is possible, so the rectangular grid pattern is stronger.<br>
<br>
<a name="Grid Rectangular" id="Grid Rectangular"></a><h5>Grid Rectangular</h5>
When selected, the infill will be a funky octogon square honeycomb like pattern which gives the object extra strength.<br>
<br>
<a name="Line" id="Line"></a><h5>Line</h5>
When selected, the infill will be made up of lines.<br>
<br>
<a name="Infill Begin Rotation" id="Infill Begin Rotation"></a><h4>Infill Begin Rotation</h4>
Default is forty five degrees, giving a diagonal infill.<br>
<br>
Defines the amount the infill direction of the base and every second layer thereafter is rotated.<br>
<br>
<a name="Infill Odd Layer Extra Rotation" id="Infill Odd Layer Extra Rotation"></a><h4>Infill Odd Layer Extra Rotation</h4>
Default is ninety degrees, making the odd layer infill perpendicular to the base layer.<br>
<br>
Defines the extra amount the infill direction of the odd layers is rotated compared to the base layer.<br>
<br>
<a name="Infill Begin Rotation Repeat" id="Infill Begin Rotation Repeat"></a><h4>Infill Begin Rotation Repeat</h4>
Default is one, giving alternating cross hatching.<br>
<br>
Defines the number of layers that the infill begin rotation will repeat. With a value higher than one, the infill will go in one direction more often, giving the object more strength in one direction and less in the other, this is useful for beams and cantilevers.<br>
<br>
<a name="Infill Perimeter Overlap" id="Infill Perimeter Overlap"></a><h4>Infill Perimeter Overlap</h4>
Default is 0.15.<br>
<br>
Defines the amount the infill overlaps the perimeter over the average of the perimeter and infill width. The higher the value the more the infill will overlap the perimeter, and the thicker join between the infill and the perimeter. If the value is too high, the join will be so thick that the nozzle will run plow through the join below making a mess, also when it is above 0.7 fill may not be able to create infill correctly. If you want to stretch the infill a lot, set 'Path Stretch over Perimeter Width' in stretch to a high value.<br>
<br>
<a name="Infill Solidity" id="Infill Solidity"></a><h4>Infill Solidity</h4>
Default is 0.2.<br>
<br>
Defines the solidity of the infill, this is the most important setting in fill. A value of one means the infill lines will be right beside each other, resulting in a solid, strong, heavy shape which takes a long time to extrude. A low value means the infill will be sparse, the interior will be mosty empty space, the object will be weak, light and quick to build.<br>
<br>
<a name="Interior Infill Density over Exterior Density" id="Interior Infill Density over Exterior Density"></a><h4>Interior Infill Density over Exterior Density</h4>
Default is 0.9.<br>
<br>
Defines the ratio of the infill density of the interior over the infill density of the exterior surfaces. The exterior should have a high infill density, so that the surface will be strong and watertight. With the interior infill density a bit lower than the exterior, the plastic will not fill up higher than the extruder nozzle. If the interior density is too high that could happen, as Nophead described in the Hydraraptor "Bearing Fruit" post at:<br>
<a href="http://hydraraptor.blogspot.com/2008/08/bearing-fruit.html">http://hydraraptor.blogspot.com/2008/08/bearing-fruit.html</a><br>
<br>
<a name="Infill Width over Thickness" id="Infill Width over Thickness"></a><h4>Infill Width over Thickness</h4>
Default is 1.5.<br>
<br>
Defines the ratio of the infill width over the layer thickness. The higher the value the wider apart the infill will be and therefore the sparser the infill will be.<br>
<br>
<a name="Solid Surface Thickness" id="Solid Surface Thickness"></a><h3>Solid Surface Thickness</h3>
Default is three.<br>
<br>
Defines the number of solid layers that are at the bottom, top, plateaus and overhang. With a value of zero, the entire object will be composed of a sparse infill, and water could flow right through it. With a value of one, water will leak slowly through the surface and with a value of three, the object could be watertight. The higher the solid surface thickness, the stronger and heavier the object will be.<br>
<br>
<a name="Thread Sequence Choice" id="Thread Sequence Choice"></a><h3>Thread Sequence Choice</h3>
The 'Thread Sequence Choice' is the sequence in which the threads will be extruded. There are three kinds of thread, the perimeter threads on the outside of the object, the loop threads aka inner shell threads, and the interior infill threads.<br>
<br>
The default choice is 'Perimeter > Loops > Infill', which the default stretch parameters are based on. If you change from the default sequence choice setting of perimeter, then loops, then infill, the optimal stretch thread parameters would also be different. In general, if the infill is extruded first, the infill would have to be stretched more so that even after the filament shrinkage, it would still be long enough to connect to the loop or perimeter. The six sequence combinations follow below.<br>
<br>
<a name="Infill > Loops > Perimeter" id="Infill > Loops > Perimeter"></a><h4>Infill > Loops > Perimeter</h4>
<a name="Infill > Perimeter > Loops" id="Infill > Perimeter > Loops"></a><h4>Infill > Perimeter > Loops</h4>
<a name="Loops > Infill > Perimeter" id="Loops > Infill > Perimeter"></a><h4>Loops > Infill > Perimeter</h4>
<a name="Loops > Perimeter > Infill" id="Loops > Perimeter > Infill"></a><h4>Loops > Perimeter > Infill</h4>
<a name="Perimeter > Infill > Loops" id="Perimeter > Infill > Loops"></a><h4>Perimeter > Infill > Loops</h4>
<a name="Perimeter > Loops > Infill" id="Perimeter > Loops > Infill"></a><h4>Perimeter > Loops > Infill</h4>
<br>
<a name="Examples" id="Examples"></a><h2>Examples</h2>
<hr>
The following examples fill the file Screw Holder Bottom.stl. The examples are run in a terminal in the folder which contains Screw Holder Bottom.stl and fill.py.<br>
<br>
<br>
> python fill.py<br>
This brings up the fill dialog.<br>
<br>
<br>
> python fill.py Screw Holder Bottom.stl<br>
The fill tool is parsing the file:<br>
Screw Holder Bottom.stl<br>
..<br>
The fill tool has created the file:<br>
.. Screw Holder Bottom_fill.gcode<br>
<br>
<br>
> python<br>
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
>>> import fill<br>
>>> fill.<a href="#-main">main</a>()<br>
This brings up the fill dialog.<br>
<br>
<br>
>>> fill.<a href="#-writeOutput">writeOutput</a>( 'Screw Holder Bottom.stl' )<br>
The fill tool is parsing the file:<br>
Screw Holder Bottom.stl<br>
..<br>
The fill tool has created the file:<br>
.. Screw Holder Bottom_fill.gcode</tt>
<br />
<br />
<p>
<a href="skeinforge_tools.craft_plugins.feed.html">Previous</a> / <a href="skeinforge_tools.craft_plugins.fillet.html">Next</a> / <a href="contents.html">Contents</a>
</p>
<hr>
</p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
<a href="skeinforge_tools.skeinforge_utilities.consecution.html">skeinforge_tools.skeinforge_utilities.consecution</a><br>
<a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
<a href="skeinforge_tools.skeinforge_utilities.intercircle.html">skeinforge_tools.skeinforge_utilities.intercircle</a><br>
<a href="skeinforge_tools.skeinforge_utilities.interpret.html">skeinforge_tools.skeinforge_utilities.interpret</a><br>
</td><td width="25%" valign=top><a href="math.html">math</a><br>
<a href="skeinforge_tools.meta_plugins.polyfile.html">skeinforge_tools.meta_plugins.polyfile</a><br>
<a href="skeinforge_tools.profile.html">skeinforge_tools.profile</a><br>
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.settings.html">skeinforge_tools.skeinforge_utilities.settings</a><br>
<a href="sys.html">sys</a><br>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="skeinforge_tools.craft_plugins.fill.html#FillRepository">FillRepository</a>
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.craft_plugins.fill.html#FillSkein">FillSkein</a>
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.craft_plugins.fill.html#RotatedLayer">RotatedLayer</a>
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.craft_plugins.fill.html#YIntersectionPath">YIntersectionPath</a>
</font></dt></dl>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="FillRepository">class <strong>FillRepository</strong></a></font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>A class to handle the fill settings.<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="FillRepository-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default settings, execute title & settings fileName.</tt></dd></dl>
<dl><dt><a name="FillRepository-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Fill button has been clicked.</tt></dd></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="FillSkein">class <strong>FillSkein</strong></a></font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>A class to fill a skein of extrusions.<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="FillSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
<dl><dt><a name="FillSkein-addFill"><strong>addFill</strong></a>(self, layerIndex)</dt><dd><tt>Add fill to the carve layer.</tt></dd></dl>
<dl><dt><a name="FillSkein-addGcodeFromThreadZ"><strong>addGcodeFromThreadZ</strong></a>(self, thread, z)</dt><dd><tt>Add a gcode thread to the output.</tt></dd></dl>
<dl><dt><a name="FillSkein-addGrid"><strong>addGrid</strong></a>(self, arounds, fillLoops, gridPointInsetX, layerIndex, paths, pixelTable, reverseZRotationAngle, surroundingCarves, width)</dt><dd><tt>Add the grid to the infill layer.</tt></dd></dl>
<dl><dt><a name="FillSkein-addGridLinePoints"><strong>addGridLinePoints</strong></a>(self, begin, end, gridPoints, gridRotationAngle, offset, y)</dt><dd><tt>Add the segments of one line of a grid to the infill.</tt></dd></dl>
<dl><dt><a name="FillSkein-addRemainingGridPoints"><strong>addRemainingGridPoints</strong></a>(self, arounds, gridPointInsetX, gridPointInsetY, gridPoints, isBothOrNone, paths, pixelTable, width)</dt><dd><tt>Add the remaining grid points to the grid point list.</tt></dd></dl>
<dl><dt><a name="FillSkein-addRotatedCarve"><strong>addRotatedCarve</strong></a>(self, layerIndex, reverseZRotationAngle, surroundingCarves)</dt><dd><tt>Add a rotated carve to the surrounding carves.</tt></dd></dl>
<dl><dt><a name="FillSkein-addThreadsBridgeLayer"><strong>addThreadsBridgeLayer</strong></a>(self, rotatedLayer, surroundingLoops)</dt><dd><tt>Add the threads, add the bridge end & the layer end tag.</tt></dd></dl>
<dl><dt><a name="FillSkein-addToThread"><strong>addToThread</strong></a>(self, location)</dt><dd><tt>Add a location to thread.</tt></dd></dl>
<dl><dt><a name="FillSkein-getAreaChange"><strong>getAreaChange</strong></a>(self, area, layerIndex)</dt><dd><tt>Get the difference between the area of the carve at the layer index and the given area.</tt></dd></dl>
<dl><dt><a name="FillSkein-getCarveArea"><strong>getCarveArea</strong></a>(self, layerIndex)</dt><dd><tt>Get the area of the carve.</tt></dd></dl>
<dl><dt><a name="FillSkein-getCraftedGcode"><strong>getCraftedGcode</strong></a>(self, fillRepository, gcodeText)</dt><dd><tt>Parse gcode text and store the bevel gcode.</tt></dd></dl>
<dl><dt><a name="FillSkein-getGridPoints"><strong>getGridPoints</strong></a>(self, fillLoops, reverseZRotationAngle)</dt><dd><tt>Get the grid pointsl.</tt></dd></dl>
<dl><dt><a name="FillSkein-getLayerRoundZ"><strong>getLayerRoundZ</strong></a>(self, layerIndex)</dt><dd><tt>Get the plane angle around z that the layer is rotated by.</tt></dd></dl>
<dl><dt><a name="FillSkein-getNextGripXStep"><strong>getNextGripXStep</strong></a>(self, gridXStep)</dt><dd><tt>Get the next grid x step, increment by an extra one every three if hexagonal grid is chosen.</tt></dd></dl>
<dl><dt><a name="FillSkein-isGridToBeExtruded"><strong>isGridToBeExtruded</strong></a>(self)</dt><dd><tt>Determine if the grid is to be extruded.</tt></dd></dl>
<dl><dt><a name="FillSkein-isPointInsideLineSegments"><strong>isPointInsideLineSegments</strong></a>(self, gridPoint)</dt><dd><tt>Is the point inside the line segments of the loops.</tt></dd></dl>
<dl><dt><a name="FillSkein-linearMove"><strong>linearMove</strong></a>(self, splitLine)</dt><dd><tt>Add a linear move to the thread.</tt></dd></dl>
<dl><dt><a name="FillSkein-parseInitialization"><strong>parseInitialization</strong></a>(self)</dt><dd><tt>Parse gcode initialization and store the parameters.</tt></dd></dl>
<dl><dt><a name="FillSkein-parseLine"><strong>parseLine</strong></a>(self, lineIndex)</dt><dd><tt>Parse a gcode line and add it to the fill skein.</tt></dd></dl>
<dl><dt><a name="FillSkein-setGridVariables"><strong>setGridVariables</strong></a>(self, fillRepository)</dt><dd><tt>Set the grid variables.</tt></dd></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="RotatedLayer">class <strong>RotatedLayer</strong></a></font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>A rotated layer.<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="RotatedLayer-__init__"><strong>__init__</strong></a>(self, z)</dt></dl>
<dl><dt><a name="RotatedLayer-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this <a href="#RotatedLayer">RotatedLayer</a>.</tt></dd></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="YIntersectionPath">class <strong>YIntersectionPath</strong></a></font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>A class to hold the y intersection position, the loop which it intersected and the point index of the loop which it intersected.<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="YIntersectionPath-__init__"><strong>__init__</strong></a>(self, pathIndex, pointIndex, y)</dt><dd><tt>Initialize from the path, point index, and y.</tt></dd></dl>
<dl><dt><a name="YIntersectionPath-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this y intersection.</tt></dd></dl>
<dl><dt><a name="YIntersectionPath-getPath"><strong>getPath</strong></a>(self, paths)</dt><dd><tt>Get the path from the paths and path index.</tt></dd></dl>
<dl><dt><a name="YIntersectionPath-getPointIndexPlusOne"><strong>getPointIndexPlusOne</strong></a>(self)</dt><dd><tt>Get the point index plus one.</tt></dd></dl>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt><a name="-addAroundGridPoint"><strong>addAroundGridPoint</strong></a>(arounds, gridPoint, gridPointInsetX, gridPointInsetY, gridPoints, gridSearchRadius, isBothOrNone, isDoubleJunction, isJunctionWide, paths, pixelTable, width)</dt><dd><tt>Add the path around the grid point.</tt></dd></dl>
<dl><dt><a name="-addPath"><strong>addPath</strong></a>(infillWidth, infillPaths, path, rotationPlaneAngle)</dt><dd><tt>Add simplified path to fill.</tt></dd></dl>
<dl><dt><a name="-addPathIndexFirstSegment"><strong>addPathIndexFirstSegment</strong></a>(gridPixel, pathIndexTable, pixelTable, segmentFirstPixel)</dt><dd><tt>Add the path index of the closest segment found toward the second segment.</tt></dd></dl>
<dl><dt><a name="-addPathIndexSecondSegment"><strong>addPathIndexSecondSegment</strong></a>(gridPixel, pathIndexTable, pixelTable, segmentSecondPixel)</dt><dd><tt>Add the path index of the closest segment found toward the second segment.</tt></dd></dl>
<dl><dt><a name="-addPointOnPath"><strong>addPointOnPath</strong></a>(path, pathIndex, pixelTable, point, pointIndex, width)</dt><dd><tt>Add a point to a path and the pixel table.</tt></dd></dl>
<dl><dt><a name="-addPointOnPathIfFree"><strong>addPointOnPathIfFree</strong></a>(path, pathIndex, pixelTable, point, pointIndex, width)</dt><dd><tt>Add the closest point to a path, if the point added to a path is free.</tt></dd></dl>
<dl><dt><a name="-addShortenedLineSegment"><strong>addShortenedLineSegment</strong></a>(lineSegment, shortenDistance, shortenedSegments)</dt><dd><tt>Add shortened line segment.</tt></dd></dl>
<dl><dt><a name="-addSparseEndpoints"><strong>addSparseEndpoints</strong></a>(doubleExtrusionWidth, endpoints, fillLine, horizontalSegmentLists, infillSolidity, removedEndpoints, solidSurfaceThickness, surroundingXIntersections)</dt><dd><tt>Add sparse endpoints.</tt></dd></dl>
<dl><dt><a name="-addSparseEndpointsFromSegment"><strong>addSparseEndpointsFromSegment</strong></a>(doubleExtrusionWidth, endpoints, fillLine, horizontalSegmentLists, infillSolidity, removedEndpoints, segment, solidSurfaceThickness, surroundingXIntersections)</dt><dd><tt>Add sparse endpoints from a segment.</tt></dd></dl>
<dl><dt><a name="-addYIntersectionPathToList"><strong>addYIntersectionPathToList</strong></a>(pathIndex, pointIndex, y, yIntersection, yIntersectionPaths)</dt><dd><tt>Add the y intersection path to the y intersection paths.</tt></dd></dl>
<dl><dt><a name="-compareDistanceFromCenter"><strong>compareDistanceFromCenter</strong></a>(self, other)</dt><dd><tt>Get comparison in order to sort y intersections in ascending order of distance from the center.</tt></dd></dl>
<dl><dt><a name="-comparePointIndexDescending"><strong>comparePointIndexDescending</strong></a>(self, other)</dt><dd><tt>Get comparison in order to sort y intersections in descending order of point index.</tt></dd></dl>
<dl><dt><a name="-createExtraFillLoops"><strong>createExtraFillLoops</strong></a>(radius, shouldExtraLoopsBeAdded, surroundingLoop)</dt><dd><tt>Create extra fill loops.</tt></dd></dl>
<dl><dt><a name="-createFillForSurroundings"><strong>createFillForSurroundings</strong></a>(radius, shouldExtraLoopsBeAdded, surroundingLoops)</dt><dd><tt>Create extra fill loops for surrounding loops.</tt></dd></dl>
<dl><dt><a name="-getAdditionalLength"><strong>getAdditionalLength</strong></a>(path, point, pointIndex)</dt><dd><tt>Get the additional length added by inserting a point into a path.</tt></dd></dl>
<dl><dt><a name="-getClosestOppositeIntersectionPaths"><strong>getClosestOppositeIntersectionPaths</strong></a>(yIntersectionPaths)</dt><dd><tt>Get the close to center paths, starting with the first and an additional opposite if it exists.</tt></dd></dl>
<dl><dt><a name="-getCraftedText"><strong>getCraftedText</strong></a>(fileName, gcodeText<font color="#909090">=''</font>, fillRepository<font color="#909090">=None</font>)</dt><dd><tt>Fill the inset file or gcode text.</tt></dd></dl>
<dl><dt><a name="-getCraftedTextFromText"><strong>getCraftedTextFromText</strong></a>(gcodeText, fillRepository<font color="#909090">=None</font>)</dt><dd><tt>Fill the inset gcode text.</tt></dd></dl>
<dl><dt><a name="-getExtraFillLoops"><strong>getExtraFillLoops</strong></a>(insideLoops, outsideLoop, radius)</dt><dd><tt>Get extra loops between inside and outside loops.</tt></dd></dl>
<dl><dt><a name="-getKeyIsInPixelTableAddValue"><strong>getKeyIsInPixelTableAddValue</strong></a>(key, pathIndexTable, pixelTable)</dt><dd><tt>Determine if the key is in the pixel table, and if it is and if the value is not None add it to the path index table.</tt></dd></dl>
<dl><dt><a name="-getNewRepository"><strong>getNewRepository</strong></a>()</dt><dd><tt>Get the repository constructor.</tt></dd></dl>
<dl><dt><a name="-getNonIntersectingGridPointLine"><strong>getNonIntersectingGridPointLine</strong></a>(gridPointInsetX, isJunctionWide, paths, pixelTable, yIntersectionPath, width)</dt><dd><tt>Get the points around the grid point that is junction wide that do not intersect.</tt></dd></dl>
<dl><dt><a name="-getPlusMinusSign"><strong>getPlusMinusSign</strong></a>(number)</dt><dd><tt>Get one if the number is zero or positive else negative one.</tt></dd></dl>
<dl><dt><a name="-getWithLeastLength"><strong>getWithLeastLength</strong></a>(path, point)</dt><dd><tt>Insert a point into a path, at the index at which the path would be shortest.</tt></dd></dl>
<dl><dt><a name="-getYIntersection"><strong>getYIntersection</strong></a>(firstPoint, secondPoint, x)</dt><dd><tt>Get where the line crosses x.</tt></dd></dl>
<dl><dt><a name="-getYIntersectionIfExists"><strong>getYIntersectionIfExists</strong></a>(complexFirst, complexSecond, x)</dt><dd><tt>Get the y intersection if it exists.</tt></dd></dl>
<dl><dt><a name="-getYIntersectionInsideYSegment"><strong>getYIntersectionInsideYSegment</strong></a>(segmentFirstY, segmentSecondY, complexFirst, complexSecond, x)</dt><dd><tt>Get the y intersection inside the y segment if it does, else none.</tt></dd></dl>
<dl><dt><a name="-insertGridPointPair"><strong>insertGridPointPair</strong></a>(gridPoint, gridPointInsetX, gridPoints, isJunctionWide, paths, pixelTable, yIntersectionPath, width)</dt><dd><tt>Insert a pair of points around the grid point is is junction wide, otherwise inset one point.</tt></dd></dl>
<dl><dt><a name="-insertGridPointPairWithLinePath"><strong>insertGridPointPairWithLinePath</strong></a>(gridPoint, gridPointInsetX, gridPoints, isJunctionWide, linePath, paths, pixelTable, yIntersectionPath, width)</dt><dd><tt>Insert a pair of points around the grid point is is junction wide, otherwise inset one point.</tt></dd></dl>
<dl><dt><a name="-insertGridPointPairs"><strong>insertGridPointPairs</strong></a>(gridPoint, gridPointInsetX, gridPoints, intersectionPathFirst, intersectionPathSecond, isBothOrNone, isJunctionWide, paths, pixelTable, width)</dt><dd><tt>Insert a pair of points around a pair of grid points.</tt></dd></dl>
<dl><dt><a name="-isAddedPointOnPathFree"><strong>isAddedPointOnPathFree</strong></a>(path, pixelTable, point, pointIndex, width)</dt><dd><tt>Determine if the point added to a path is intersecting the pixel table or the path.</tt></dd></dl>
<dl><dt><a name="-isAddedPointOnPathIntersectingPath"><strong>isAddedPointOnPathIntersectingPath</strong></a>(begin, path, point, pointIndex)</dt><dd><tt>Determine if the point added to a path is intersecting the path by checking line intersection.</tt></dd></dl>
<dl><dt><a name="-isIntersectingLoopsPaths"><strong>isIntersectingLoopsPaths</strong></a>(loops, paths, pointBegin, pointEnd)</dt><dd><tt>Determine if the segment between the first and second point is intersecting the loop list.</tt></dd></dl>
<dl><dt><a name="-isPathAlwaysInsideLoop"><strong>isPathAlwaysInsideLoop</strong></a>(loop, path)</dt><dd><tt>Determine if all points of a path are inside another loop.</tt></dd></dl>
<dl><dt><a name="-isPathAlwaysOutsideLoops"><strong>isPathAlwaysOutsideLoops</strong></a>(loops, path)</dt><dd><tt>Determine if all points in a path are outside another loop in a list.</tt></dd></dl>
<dl><dt><a name="-isPointAddedAroundClosest"><strong>isPointAddedAroundClosest</strong></a>(aroundPixelTable, layerExtrusionWidth, paths, removedEndpointPoint, width)</dt><dd><tt>Add the closest removed endpoint to the path, with minimal twisting.</tt></dd></dl>
<dl><dt><a name="-isSegmentAround"><strong>isSegmentAround</strong></a>(aroundSegments, segment)</dt><dd><tt>Determine if there is another segment around.</tt></dd></dl>
<dl><dt><a name="-isSegmentCompletelyInAnIntersection"><strong>isSegmentCompletelyInAnIntersection</strong></a>(segment, xIntersections)</dt><dd><tt>Add sparse endpoints from a segment.</tt></dd></dl>
<dl><dt><a name="-isSegmentInX"><strong>isSegmentInX</strong></a>(segment, xFirst, xSecond)</dt><dd><tt>Determine if the segment overlaps within x.</tt></dd></dl>
<dl><dt><a name="-isSharpCorner"><strong>isSharpCorner</strong></a>(beginComplex, centerComplex, endComplex)</dt><dd><tt>Determine if the three complex points form a sharp corner.</tt></dd></dl>
<dl><dt><a name="-isSidePointAdded"><strong>isSidePointAdded</strong></a>(aroundPixelTable, closestPath, closestPathIndex, closestPointIndex, layerExtrusionWidth, removedEndpointPoint, width)</dt><dd><tt>Add side point along with the closest removed endpoint to the path, with minimal twisting.</tt></dd></dl>
<dl><dt><a name="-main"><strong>main</strong></a>()</dt><dd><tt>Display the fill dialog.</tt></dd></dl>
<dl><dt><a name="-removeEndpoints"><strong>removeEndpoints</strong></a>(aroundPixelTable, layerExtrusionWidth, paths, removedEndpoints, aroundWidth)</dt><dd><tt>Remove endpoints which are added to the path.</tt></dd></dl>
<dl><dt><a name="-setIsOutside"><strong>setIsOutside</strong></a>(yCloseToCenterPath, yIntersectionPaths)</dt><dd><tt>Determine if the yCloseToCenterPath is outside.</tt></dd></dl>
<dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Fill an inset gcode file.</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
<strong>__date__</strong> = '$Date: 2008/28/04 $'<br>
<strong>__license__</strong> = 'GPL 3.0'<br>
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#7799ee">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
</body></html>
|