PageRenderTime 45ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/documentation/skeinforge_application.skeinforge_plugins.craft_plugins.tower.html

https://github.com/jmil/SFACT
HTML | 220 lines | 182 code | 38 blank | 0 comment | 0 complexity | 9166ce9e82abd023f0f6cecf708ec9a6 MD5 | raw file
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html><head><title>Python: module skeinforge_application.skeinforge_plugins.craft_plugins.tower</title>
  3. </head><body bgcolor="#f0f0f8">
  4. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
  5. <tr bgcolor="#7799ee">
  6. <td valign=bottom>&nbsp;<br>
  7. <font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="skeinforge_application.html"><font color="#ffffff">skeinforge_application</font></a>.<a href="skeinforge_application.skeinforge_plugins.html"><font color="#ffffff">skeinforge_plugins</font></a>.<a href="skeinforge_application.skeinforge_plugins.craft_plugins.html"><font color="#ffffff">craft_plugins</font></a>.tower</strong></big></big> ($Date: 2008/21/04 $)</font></td
  8. ><td align=right valign=bottom
  9. ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/skeinforge_application/skeinforge_plugins/craft_plugins/tower.py">/home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/skeinforge_application/skeinforge_plugins/craft_plugins/tower.py</a></font></td></tr></table>
  10. <p>
  11. <a href="skeinforge_application.skeinforge_plugins.craft_plugins.temperature.html">Previous</a> / <a href="skeinforge_application.skeinforge_plugins.craft_plugins.unpause.html">Next</a> / <a href="contents.html">Contents</a>
  12. </p>
  13. <p><tt><br>
  14. Tower commands the fabricator to extrude a disconnected region for a few layers, then go to another disconnected region and extrude there. Its purpose is to reduce the number of stringers between a shape and reduce extruder travel.<br>
  15. <br>
  16. The tower manual page is at:<br>
  17. <a href="http://fabmetheus.crsndoo.com/wiki/index.php/Skeinforge_Tower">http://fabmetheus.crsndoo.com/wiki/index.php/Skeinforge_Tower</a><br>
  18. <br>
  19. <br />
  20. <a href="#Operation">Operation</a><br />
  21. <a href="#Settings">Settings</a><br />
  22. &nbsp;&nbsp;<a href="#Maximum Tower Height">Maximum Tower Height</a><br />
  23. &nbsp;&nbsp;<a href="#Extruder Possible Collision Cone Angle">Extruder Possible Collision Cone Angle</a><br />
  24. &nbsp;&nbsp;<a href="#Tower Start Layer">Tower Start Layer</a><br />
  25. <a href="#Examples">Examples</a><br />
  26. <br />
  27. <a name="Operation" id="Operation"></a><h2>Operation</h2>
  28. <hr>
  29. The default 'Activate Tower' checkbox is off. The default is off because tower could result in the extruder colliding with an already extruded part of the shape and because extruding in one region for more than one layer could result in the shape melting. When it is on, the functions described below will work, when it is off, the functions will not be called.<br>
  30. <br>
  31. <a name="Settings" id="Settings"></a><h2>Settings</h2>
  32. <hr>
  33. <a name="Maximum Tower Height" id="Maximum Tower Height"></a><h3>Maximum Tower Height</h3>
  34. Default is five.<br>
  35. <br>
  36. Defines the maximum number of layers that the extruder will extrude in one region before going to another. This is the most important value for tower.<br>
  37. <br>
  38. <a name="Extruder Possible Collision Cone Angle" id="Extruder Possible Collision Cone Angle"></a><h3>Extruder Possible Collision Cone Angle</h3>
  39. Default is sixty degrees.<br>
  40. <br>
  41. Tower works by looking for islands in each layer and if it finds another island in the layer above, it goes to the next layer above instead of going across to other regions on the original layer. It checks for collision with shapes already extruded within a cone from the nozzle tip. The 'Extruder Possible Collision Cone Angle' setting is the angle of that cone. Realistic values for the cone angle range between zero and ninety. The higher the angle, the less likely a collision with the rest of the shape is, generally the extruder will stay in the region for only a few layers before a collision is detected with the wide cone.<br>
  42. <br>
  43. <a name="Tower Start Layer" id="Tower Start Layer"></a><h3>Tower Start Layer</h3>
  44. Default is one.<br>
  45. <br>
  46. Defines the layer index which the script starts extruding towers, after the last raft layer which does not have support material. It is best to not tower at least the first layer because the temperature of the first layer is sometimes different than that of the other layers.<br>
  47. <br>
  48. <a name="Examples" id="Examples"></a><h2>Examples</h2>
  49. <hr>
  50. The following examples tower the file Screw Holder Bottom.stl. The examples are run in a terminal in the folder which contains Screw Holder Bottom.stl and tower.py.<br>
  51. <br>
  52. &gt; python tower.py<br>
  53. This brings up the tower dialog.<br>
  54. <br>
  55. &gt; python tower.py Screw Holder Bottom.stl<br>
  56. The tower tool is parsing the file:<br>
  57. Screw Holder Bottom.stl<br>
  58. ..<br>
  59. The tower tool has created the file:<br>
  60. .. Screw Holder Bottom_tower.gcode</tt>
  61. <br />
  62. <br />
  63. <p>
  64. <a href="skeinforge_application.skeinforge_plugins.craft_plugins.temperature.html">Previous</a> / <a href="skeinforge_application.skeinforge_plugins.craft_plugins.unpause.html">Next</a> / <a href="contents.html">Contents</a>
  65. </p>
  66. <hr>
  67. </p>
  68. <p>
  69. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  70. <tr bgcolor="#aa55cc">
  71. <td colspan=3 valign=bottom>&nbsp;<br>
  72. <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
  73. <tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  74. <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
  75. <a href="fabmetheus_utilities.archive.html">fabmetheus_utilities.archive</a><br>
  76. <a href="fabmetheus_utilities.euclidean.html">fabmetheus_utilities.euclidean</a><br>
  77. </td><td width="25%" valign=top><a href="fabmetheus_utilities.fabmetheus_tools.fabmetheus_interpret.html">fabmetheus_utilities.fabmetheus_tools.fabmetheus_interpret</a><br>
  78. <a href="fabmetheus_utilities.gcodec.html">fabmetheus_utilities.gcodec</a><br>
  79. <a href="fabmetheus_utilities.intercircle.html">fabmetheus_utilities.intercircle</a><br>
  80. </td><td width="25%" valign=top><a href="math.html">math</a><br>
  81. <a href="fabmetheus_utilities.settings.html">fabmetheus_utilities.settings</a><br>
  82. <a href="skeinforge_application.skeinforge_utilities.skeinforge_craft.html">skeinforge_application.skeinforge_utilities.skeinforge_craft</a><br>
  83. </td><td width="25%" valign=top><a href="skeinforge_application.skeinforge_utilities.skeinforge_polyfile.html">skeinforge_application.skeinforge_utilities.skeinforge_polyfile</a><br>
  84. <a href="skeinforge_application.skeinforge_utilities.skeinforge_profile.html">skeinforge_application.skeinforge_utilities.skeinforge_profile</a><br>
  85. <a href="sys.html">sys</a><br>
  86. </td></tr></table></td></tr></table><p>
  87. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  88. <tr bgcolor="#ee77aa">
  89. <td colspan=3 valign=bottom>&nbsp;<br>
  90. <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
  91. <tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  92. <td width="100%"><dl>
  93. <dt><font face="helvetica, arial"><a href="skeinforge_application.skeinforge_plugins.craft_plugins.tower.html#Island">Island</a>
  94. </font></dt><dt><font face="helvetica, arial"><a href="skeinforge_application.skeinforge_plugins.craft_plugins.tower.html#ThreadLayer">ThreadLayer</a>
  95. </font></dt><dt><font face="helvetica, arial"><a href="skeinforge_application.skeinforge_plugins.craft_plugins.tower.html#TowerRepository">TowerRepository</a>
  96. </font></dt><dt><font face="helvetica, arial"><a href="skeinforge_application.skeinforge_plugins.craft_plugins.tower.html#TowerSkein">TowerSkein</a>
  97. </font></dt></dl>
  98. <p>
  99. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  100. <tr bgcolor="#ffc8d8">
  101. <td colspan=3 valign=bottom>&nbsp;<br>
  102. <font color="#000000" face="helvetica, arial"><a name="Island">class <strong>Island</strong></a></font></td></tr>
  103. <tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
  104. <td colspan=2><tt>A&nbsp;class&nbsp;to&nbsp;hold&nbsp;the&nbsp;boundary&nbsp;and&nbsp;lines.<br>&nbsp;</tt></td></tr>
  105. <tr><td>&nbsp;</td>
  106. <td width="100%">Methods defined here:<br>
  107. <dl><dt><a name="Island-__init__"><strong>__init__</strong></a>(self)</dt></dl>
  108. <dl><dt><a name="Island-addToBoundary"><strong>addToBoundary</strong></a>(self, splitLine)</dt><dd><tt>Add&nbsp;to&nbsp;the&nbsp;boundary&nbsp;if&nbsp;it&nbsp;is&nbsp;not&nbsp;complete.</tt></dd></dl>
  109. <dl><dt><a name="Island-createBoundingLoop"><strong>createBoundingLoop</strong></a>(self)</dt><dd><tt>Create&nbsp;the&nbsp;bounding&nbsp;loop&nbsp;if&nbsp;it&nbsp;is&nbsp;not&nbsp;already&nbsp;created.</tt></dd></dl>
  110. </td></tr></table> <p>
  111. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  112. <tr bgcolor="#ffc8d8">
  113. <td colspan=3 valign=bottom>&nbsp;<br>
  114. <font color="#000000" face="helvetica, arial"><a name="ThreadLayer">class <strong>ThreadLayer</strong></a></font></td></tr>
  115. <tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
  116. <td colspan=2><tt>A&nbsp;layer&nbsp;of&nbsp;loops&nbsp;and&nbsp;paths.<br>&nbsp;</tt></td></tr>
  117. <tr><td>&nbsp;</td>
  118. <td width="100%">Methods defined here:<br>
  119. <dl><dt><a name="ThreadLayer-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Thread&nbsp;layer&nbsp;constructor.</tt></dd></dl>
  120. <dl><dt><a name="ThreadLayer-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get&nbsp;the&nbsp;string&nbsp;representation&nbsp;of&nbsp;this&nbsp;thread&nbsp;layer.</tt></dd></dl>
  121. </td></tr></table> <p>
  122. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  123. <tr bgcolor="#ffc8d8">
  124. <td colspan=3 valign=bottom>&nbsp;<br>
  125. <font color="#000000" face="helvetica, arial"><a name="TowerRepository">class <strong>TowerRepository</strong></a></font></td></tr>
  126. <tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
  127. <td colspan=2><tt>A&nbsp;class&nbsp;to&nbsp;handle&nbsp;the&nbsp;tower&nbsp;settings.<br>&nbsp;</tt></td></tr>
  128. <tr><td>&nbsp;</td>
  129. <td width="100%">Methods defined here:<br>
  130. <dl><dt><a name="TowerRepository-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set&nbsp;the&nbsp;default&nbsp;settings,&nbsp;execute&nbsp;title&nbsp;&amp;&nbsp;settings&nbsp;fileName.</tt></dd></dl>
  131. <dl><dt><a name="TowerRepository-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Tower&nbsp;button&nbsp;has&nbsp;been&nbsp;clicked.</tt></dd></dl>
  132. </td></tr></table> <p>
  133. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  134. <tr bgcolor="#ffc8d8">
  135. <td colspan=3 valign=bottom>&nbsp;<br>
  136. <font color="#000000" face="helvetica, arial"><a name="TowerSkein">class <strong>TowerSkein</strong></a></font></td></tr>
  137. <tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
  138. <td colspan=2><tt>A&nbsp;class&nbsp;to&nbsp;tower&nbsp;a&nbsp;skein&nbsp;of&nbsp;extrusions.<br>&nbsp;</tt></td></tr>
  139. <tr><td>&nbsp;</td>
  140. <td width="100%">Methods defined here:<br>
  141. <dl><dt><a name="TowerSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
  142. <dl><dt><a name="TowerSkein-addEntireLayer"><strong>addEntireLayer</strong></a>(self, threadLayer)</dt><dd><tt>Add&nbsp;entire&nbsp;thread&nbsp;layer.</tt></dd></dl>
  143. <dl><dt><a name="TowerSkein-addHighThread"><strong>addHighThread</strong></a>(self, location)</dt><dd><tt>Add&nbsp;thread&nbsp;with&nbsp;a&nbsp;high&nbsp;move&nbsp;if&nbsp;necessary&nbsp;to&nbsp;clear&nbsp;the&nbsp;previous&nbsp;extrusion.</tt></dd></dl>
  144. <dl><dt><a name="TowerSkein-addThreadLayerIfNone"><strong>addThreadLayerIfNone</strong></a>(self)</dt><dd><tt>Add&nbsp;a&nbsp;thread&nbsp;layer&nbsp;if&nbsp;it&nbsp;is&nbsp;none.</tt></dd></dl>
  145. <dl><dt><a name="TowerSkein-addTowers"><strong>addTowers</strong></a>(self)</dt><dd><tt>Add&nbsp;towers.</tt></dd></dl>
  146. <dl><dt><a name="TowerSkein-climbTower"><strong>climbTower</strong></a>(self, removedIsland)</dt><dd><tt>Climb&nbsp;up&nbsp;the&nbsp;island&nbsp;to&nbsp;any&nbsp;islands&nbsp;directly&nbsp;above.</tt></dd></dl>
  147. <dl><dt><a name="TowerSkein-getBottomLayerIndex"><strong>getBottomLayerIndex</strong></a>(self)</dt><dd><tt>Get&nbsp;the&nbsp;index&nbsp;of&nbsp;the&nbsp;first&nbsp;island&nbsp;layer&nbsp;which&nbsp;has&nbsp;islands.</tt></dd></dl>
  148. <dl><dt><a name="TowerSkein-getCraftedGcode"><strong>getCraftedGcode</strong></a>(self, gcodeText, towerRepository)</dt><dd><tt>Parse&nbsp;gcode&nbsp;text&nbsp;and&nbsp;store&nbsp;the&nbsp;tower&nbsp;gcode.</tt></dd></dl>
  149. <dl><dt><a name="TowerSkein-getRemovedIslandAddLayerLinesIfDifferent"><strong>getRemovedIslandAddLayerLinesIfDifferent</strong></a>(self, islands, layerIndex)</dt><dd><tt>Add&nbsp;gcode&nbsp;lines&nbsp;for&nbsp;the&nbsp;layer&nbsp;if&nbsp;it&nbsp;is&nbsp;different&nbsp;than&nbsp;the&nbsp;old&nbsp;bottom&nbsp;layer&nbsp;index.</tt></dd></dl>
  150. <dl><dt><a name="TowerSkein-getTransferClosestSurroundingLoopLines"><strong>getTransferClosestSurroundingLoopLines</strong></a>(self, oldOrderedLocation, remainingNestedRings)</dt><dd><tt>Get&nbsp;and&nbsp;transfer&nbsp;the&nbsp;closest&nbsp;remaining&nbsp;surrounding&nbsp;loop.</tt></dd></dl>
  151. <dl><dt><a name="TowerSkein-isInsideRemovedOutsideCone"><strong>isInsideRemovedOutsideCone</strong></a>(self, island, removedBoundingLoop, untilLayerIndex)</dt><dd><tt>Determine&nbsp;if&nbsp;the&nbsp;island&nbsp;is&nbsp;entirely&nbsp;inside&nbsp;the&nbsp;removed&nbsp;bounding&nbsp;loop&nbsp;and&nbsp;outside&nbsp;the&nbsp;collision&nbsp;cone&nbsp;of&nbsp;the&nbsp;remaining&nbsp;islands.</tt></dd></dl>
  152. <dl><dt><a name="TowerSkein-parseIfWordUntilWord"><strong>parseIfWordUntilWord</strong></a>(self, word)</dt><dd><tt>Parse&nbsp;gcode&nbsp;if&nbsp;there&nbsp;is&nbsp;a&nbsp;word&nbsp;until&nbsp;the&nbsp;word&nbsp;is&nbsp;reached.</tt></dd></dl>
  153. <dl><dt><a name="TowerSkein-parseInitialization"><strong>parseInitialization</strong></a>(self)</dt><dd><tt>Parse&nbsp;gcode&nbsp;initialization&nbsp;and&nbsp;store&nbsp;the&nbsp;parameters.</tt></dd></dl>
  154. <dl><dt><a name="TowerSkein-parseLine"><strong>parseLine</strong></a>(self, lineIndex)</dt><dd><tt>Parse&nbsp;a&nbsp;gcode&nbsp;line.</tt></dd></dl>
  155. </td></tr></table></td></tr></table><p>
  156. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  157. <tr bgcolor="#eeaa77">
  158. <td colspan=3 valign=bottom>&nbsp;<br>
  159. <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
  160. <tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  161. <td width="100%"><dl><dt><a name="-getCraftedText"><strong>getCraftedText</strong></a>(fileName, text, towerRepository<font color="#909090">=None</font>)</dt><dd><tt>Tower&nbsp;a&nbsp;gcode&nbsp;linear&nbsp;move&nbsp;file&nbsp;or&nbsp;text.</tt></dd></dl>
  162. <dl><dt><a name="-getCraftedTextFromText"><strong>getCraftedTextFromText</strong></a>(gcodeText, towerRepository<font color="#909090">=None</font>)</dt><dd><tt>Tower&nbsp;a&nbsp;gcode&nbsp;linear&nbsp;move&nbsp;text.</tt></dd></dl>
  163. <dl><dt><a name="-getNewRepository"><strong>getNewRepository</strong></a>()</dt><dd><tt>Get&nbsp;new&nbsp;repository.</tt></dd></dl>
  164. <dl><dt><a name="-main"><strong>main</strong></a>()</dt><dd><tt>Display&nbsp;the&nbsp;tower&nbsp;dialog.</tt></dd></dl>
  165. <dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName, shouldAnalyze<font color="#909090">=True</font>)</dt><dd><tt>Tower&nbsp;a&nbsp;gcode&nbsp;linear&nbsp;move&nbsp;file.</tt></dd></dl>
  166. </td></tr></table><p>
  167. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  168. <tr bgcolor="#55aa55">
  169. <td colspan=3 valign=bottom>&nbsp;<br>
  170. <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
  171. <tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  172. <td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
  173. <strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
  174. <strong>__license__</strong> = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'<br>
  175. <strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
  176. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  177. <tr bgcolor="#7799ee">
  178. <td colspan=3 valign=bottom>&nbsp;<br>
  179. <font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
  180. <tr><td bgcolor="#7799ee"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  181. <td width="100%">Enrique&nbsp;Perez&nbsp;(perez_enrique@yahoo.com)</td></tr></table>
  182. </body></html>