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

/documentation/skeinforge_application.skeinforge_plugins.craft_plugins.carve.html

https://github.com/jmil/SFACT
HTML | 223 lines | 196 code | 27 blank | 0 comment | 0 complexity | 5252ba1fe332be8df863133de6df319a 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.carve</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>.carve</strong></big></big> ($Date: 2008/02/05 $)</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/carve.py">/home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/skeinforge_application/skeinforge_plugins/craft_plugins/carve.py</a></font></td></tr></table>
  10. <p>
  11. <a href="skeinforge_application.skeinforge_plugins.craft_plugins.bottom.html">Previous</a> / <a href="skeinforge_application.skeinforge_plugins.craft_plugins.chamber.html">Next</a> / <a href="contents.html">Contents</a>
  12. </p>
  13. <p><tt><br>
  14. Carve is a script to carve a shape into svg slice layers.<br>
  15. <br>
  16. The carve manual page is at:<br>
  17. <a href="http://fabmetheus.crsndoo.com/wiki/index.php/Skeinforge_Carve">http://fabmetheus.crsndoo.com/wiki/index.php/Skeinforge_Carve</a><br>
  18. <br>
  19. On the Arcol Blog a method of deriving the layer thickness is posted. That article "Machine Calibrating" is at:<br>
  20. <a href="http://blog.arcol.hu/?p=157">http://blog.arcol.hu/?p=157</a><br>
  21. <br>
  22. <br />
  23. <a href="#Settings">Settings</a><br />
  24. &nbsp;&nbsp;<a href="#Add Layer Template to SVG">Add Layer Template to SVG</a><br />
  25. &nbsp;&nbsp;<a href="#Extra Decimal Places">Extra Decimal Places</a><br />
  26. &nbsp;&nbsp;<a href="#Import Coarseness">Import Coarseness</a><br />
  27. &nbsp;&nbsp;<a href="#Infill in Direction of Bridge">Infill in Direction of Bridge</a><br />
  28. &nbsp;&nbsp;<a href="#Layer Thickness">Layer Thickness</a><br />
  29. &nbsp;&nbsp;<a href="#Layers">Layers</a><br />
  30. &nbsp;&nbsp;&nbsp;&nbsp;<a href="#Layers From">Layers From</a><br />
  31. &nbsp;&nbsp;&nbsp;&nbsp;<a href="#Layers To">Layers To</a><br />
  32. &nbsp;&nbsp;<a href="#Mesh Type">Mesh Type</a><br />
  33. &nbsp;&nbsp;&nbsp;&nbsp;<a href="#Correct Mesh">Correct Mesh</a><br />
  34. &nbsp;&nbsp;&nbsp;&nbsp;<a href="#Unproven Mesh">Unproven Mesh</a><br />
  35. &nbsp;&nbsp;<a href="#Perimeter Width over Thickness">Perimeter Width over Thickness</a><br />
  36. &nbsp;&nbsp;<a href="#SVG Viewer">SVG Viewer</a><br />
  37. <a href="#Examples">Examples</a><br />
  38. <br />
  39. <a name="Settings" id="Settings"></a><h2>Settings</h2>
  40. <hr>
  41. <a name="Add Layer Template to SVG" id="Add Layer Template to SVG"></a><h3>Add Layer Template to SVG</h3>
  42. Default is on.<br>
  43. <br>
  44. When selected, the layer template will be added to the svg output, which adds javascript control boxes. So 'Add Layer Template to SVG' should be selected when the svg will be viewed in a browser.<br>
  45. <br>
  46. When off, no controls will be added, the svg output will only include the fabrication paths. So 'Add Layer Template to SVG' should be deselected when the svg will be used by other software, like Inkscape.<br>
  47. <br>
  48. <a name="Extra Decimal Places" id="Extra Decimal Places"></a><h3>Extra Decimal Places</h3>
  49. Default is two.<br>
  50. <br>
  51. Defines the number of extra decimal places export will output compared to the number of decimal places in the layer thickness. The higher the 'Extra Decimal Places', the more significant figures the output numbers will have.<br>
  52. <br>
  53. <a name="Import Coarseness" id="Import Coarseness"></a><h3>Import Coarseness</h3>
  54. Default is one.<br>
  55. <br>
  56. When a triangle mesh has holes in it, the triangle mesh slicer switches over to a slow algorithm that spans gaps in the mesh. The higher the 'Import Coarseness' setting, the wider the gaps in the mesh it will span. An import coarseness of one means it will span gaps of the perimeter width.<br>
  57. <br>
  58. <a name="Infill in Direction of Bridge" id="Infill in Direction of Bridge"></a><h3>Infill in Direction of Bridge</h3>
  59. Default is on.<br>
  60. <br>
  61. When selected, the infill will be in the direction of any bridge across a gap, so that the fill will be able to span a bridge easier.<br>
  62. <br>
  63. <a name="Layer Thickness" id="Layer Thickness"></a><h3>Layer Thickness</h3>
  64. Default is 0.4 mm.<br>
  65. <br>
  66. Defines the thickness of the extrusion layer at default extruder speed, this is the most important carve setting.<br>
  67. <br>
  68. <a name="Layers" id="Layers"></a><h3>Layers</h3>
  69. Carve slices from bottom to top. To get a single layer, set the "Layers From" to zero and the "Layers To" to one. The 'Layers From' until 'Layers To' range is a python slice.<br>
  70. <br>
  71. <a name="Layers From" id="Layers From"></a><h4>Layers From</h4>
  72. Default is zero.<br>
  73. <br>
  74. Defines the index of the bottom layer that will be carved. If the 'Layers From' is the default zero, the carving will start from the lowest layer. If the 'Layers From' index is negative, then the carving will start from the 'Layers From' index below the top layer.<br>
  75. <br>
  76. <a name="Layers To" id="Layers To"></a><h4>Layers To</h4>
  77. Default is a huge number, which will be limited to the highest index layer.<br>
  78. <br>
  79. Defines the index of the top layer that will be carved. If the 'Layers To' index is a huge number like the default, the carving will go to the top of the model. If the 'Layers To' index is negative, then the carving will go to the 'Layers To' index below the top layer.<br>
  80. <br>
  81. <a name="Mesh Type" id="Mesh Type"></a><h3>Mesh Type</h3>
  82. Default is 'Correct Mesh'.<br>
  83. <br>
  84. <a name="Correct Mesh" id="Correct Mesh"></a><h4>Correct Mesh</h4>
  85. When selected, the mesh will be accurately carved, and if a hole is found, carve will switch over to the algorithm that spans gaps.<br>
  86. <br>
  87. <a name="Unproven Mesh" id="Unproven Mesh"></a><h4>Unproven Mesh</h4>
  88. When selected, carve will use the gap spanning algorithm from the start. The problem with the gap spanning algothm is that it will span gaps, even if there is not actually a gap in the model.<br>
  89. <br>
  90. <a name="Perimeter Width over Thickness" id="Perimeter Width over Thickness"></a><h3>Perimeter Width over Thickness</h3>
  91. Default is 1.8.<br>
  92. <br>
  93. Defines the ratio of the extrusion perimeter width to the layer thickness. The higher the value the more the perimeter will be inset, the default is 1.8. A ratio of one means the extrusion is a circle, a typical ratio of 1.8 means the extrusion is a wide oval. These values should be measured from a test extrusion line.<br>
  94. <br>
  95. <a name="SVG Viewer" id="SVG Viewer"></a><h3>SVG Viewer</h3>
  96. Default is webbrowser.<br>
  97. <br>
  98. If the 'SVG Viewer' is set to the default 'webbrowser', the scalable vector graphics file will be sent to the default browser to be opened. If the 'SVG Viewer' is set to a program name, the scalable vector graphics file will be sent to that program to be opened.<br>
  99. <br>
  100. <a name="Examples" id="Examples"></a><h2>Examples</h2>
  101. <hr>
  102. The following examples carve the file Screw Holder Bottom.stl. The examples are run in a terminal in the folder which contains Screw Holder Bottom.stl and carve.py.<br>
  103. <br>
  104. &gt; python carve.py<br>
  105. This brings up the carve dialog.<br>
  106. <br>
  107. &gt; python carve.py Screw Holder Bottom.stl<br>
  108. The carve tool is parsing the file:<br>
  109. Screw Holder Bottom.stl<br>
  110. ..<br>
  111. The carve tool has created the file:<br>
  112. .. Screw Holder Bottom_carve.svg</tt>
  113. <br />
  114. <br />
  115. <p>
  116. <a href="skeinforge_application.skeinforge_plugins.craft_plugins.bottom.html">Previous</a> / <a href="skeinforge_application.skeinforge_plugins.craft_plugins.chamber.html">Next</a> / <a href="contents.html">Contents</a>
  117. </p>
  118. <hr>
  119. </p>
  120. <p>
  121. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  122. <tr bgcolor="#aa55cc">
  123. <td colspan=3 valign=bottom>&nbsp;<br>
  124. <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
  125. <tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  126. <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
  127. <a href="fabmetheus_utilities.archive.html">fabmetheus_utilities.archive</a><br>
  128. <a href="fabmetheus_utilities.euclidean.html">fabmetheus_utilities.euclidean</a><br>
  129. <a href="fabmetheus_utilities.fabmetheus_tools.fabmetheus_interpret.html">fabmetheus_utilities.fabmetheus_tools.fabmetheus_interpret</a><br>
  130. </td><td width="25%" valign=top><a href="fabmetheus_utilities.gcodec.html">fabmetheus_utilities.gcodec</a><br>
  131. <a href="math.html">math</a><br>
  132. <a href="os.html">os</a><br>
  133. <a href="fabmetheus_utilities.settings.html">fabmetheus_utilities.settings</a><br>
  134. </td><td width="25%" valign=top><a href="skeinforge_application.skeinforge_utilities.skeinforge_polyfile.html">skeinforge_application.skeinforge_utilities.skeinforge_polyfile</a><br>
  135. <a href="skeinforge_application.skeinforge_utilities.skeinforge_profile.html">skeinforge_application.skeinforge_utilities.skeinforge_profile</a><br>
  136. <a href="fabmetheus_utilities.svg_writer.html">fabmetheus_utilities.svg_writer</a><br>
  137. <a href="sys.html">sys</a><br>
  138. </td><td width="25%" valign=top><a href="time.html">time</a><br>
  139. </td></tr></table></td></tr></table><p>
  140. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  141. <tr bgcolor="#ee77aa">
  142. <td colspan=3 valign=bottom>&nbsp;<br>
  143. <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
  144. <tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  145. <td width="100%"><dl>
  146. <dt><font face="helvetica, arial"><a href="skeinforge_application.skeinforge_plugins.craft_plugins.carve.html#CarveRepository">CarveRepository</a>
  147. </font></dt><dt><font face="helvetica, arial"><a href="skeinforge_application.skeinforge_plugins.craft_plugins.carve.html#CarveSkein">CarveSkein</a>
  148. </font></dt></dl>
  149. <p>
  150. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  151. <tr bgcolor="#ffc8d8">
  152. <td colspan=3 valign=bottom>&nbsp;<br>
  153. <font color="#000000" face="helvetica, arial"><a name="CarveRepository">class <strong>CarveRepository</strong></a></font></td></tr>
  154. <tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
  155. <td colspan=2><tt>A&nbsp;class&nbsp;to&nbsp;handle&nbsp;the&nbsp;carve&nbsp;settings.<br>&nbsp;</tt></td></tr>
  156. <tr><td>&nbsp;</td>
  157. <td width="100%">Methods defined here:<br>
  158. <dl><dt><a name="CarveRepository-__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>
  159. <dl><dt><a name="CarveRepository-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Carve&nbsp;button&nbsp;has&nbsp;been&nbsp;clicked.</tt></dd></dl>
  160. </td></tr></table> <p>
  161. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  162. <tr bgcolor="#ffc8d8">
  163. <td colspan=3 valign=bottom>&nbsp;<br>
  164. <font color="#000000" face="helvetica, arial"><a name="CarveSkein">class <strong>CarveSkein</strong></a></font></td></tr>
  165. <tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
  166. <td colspan=2><tt>A&nbsp;class&nbsp;to&nbsp;carve&nbsp;a&nbsp;carving.<br>&nbsp;</tt></td></tr>
  167. <tr><td>&nbsp;</td>
  168. <td width="100%">Methods defined here:<br>
  169. <dl><dt><a name="CarveSkein-getCarvedSVG"><strong>getCarvedSVG</strong></a>(self, carving, fileName, repository)</dt><dd><tt>Parse&nbsp;gnu&nbsp;triangulated&nbsp;surface&nbsp;text&nbsp;and&nbsp;store&nbsp;the&nbsp;carved&nbsp;gcode.</tt></dd></dl>
  170. </td></tr></table></td></tr></table><p>
  171. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  172. <tr bgcolor="#eeaa77">
  173. <td colspan=3 valign=bottom>&nbsp;<br>
  174. <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
  175. <tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  176. <td width="100%"><dl><dt><a name="-getCraftedText"><strong>getCraftedText</strong></a>(fileName, gcodeText<font color="#909090">=''</font>, repository<font color="#909090">=None</font>)</dt><dd><tt>Get&nbsp;carved&nbsp;text.</tt></dd></dl>
  177. <dl><dt><a name="-getNewRepository"><strong>getNewRepository</strong></a>()</dt><dd><tt>Get&nbsp;new&nbsp;repository.</tt></dd></dl>
  178. <dl><dt><a name="-main"><strong>main</strong></a>()</dt><dd><tt>Display&nbsp;the&nbsp;carve&nbsp;dialog.</tt></dd></dl>
  179. <dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName, shouldAnalyze<font color="#909090">=True</font>)</dt><dd><tt>Carve&nbsp;a&nbsp;GNU&nbsp;Triangulated&nbsp;Surface&nbsp;file.</tt></dd></dl>
  180. </td></tr></table><p>
  181. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  182. <tr bgcolor="#55aa55">
  183. <td colspan=3 valign=bottom>&nbsp;<br>
  184. <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
  185. <tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  186. <td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
  187. <strong>__date__</strong> = '$Date: 2008/02/05 $'<br>
  188. <strong>__license__</strong> = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'<br>
  189. <strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
  190. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  191. <tr bgcolor="#7799ee">
  192. <td colspan=3 valign=bottom>&nbsp;<br>
  193. <font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
  194. <tr><td bgcolor="#7799ee"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  195. <td width="100%">Enrique&nbsp;Perez&nbsp;(perez_enrique@yahoo.com)</td></tr></table>
  196. </body></html>