camlib.html 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903
  1. <!DOCTYPE html>
  2. <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
  3. <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
  4. <head>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>Camlib &mdash; Cirkuix 0.5 documentation</title>
  8. <link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'>
  9. <script type="text/javascript">
  10. var DOCUMENTATION_OPTIONS = {
  11. URL_ROOT:'./',
  12. VERSION:'0.5',
  13. COLLAPSE_INDEX:false,
  14. FILE_SUFFIX:'.html',
  15. HAS_SOURCE: true
  16. };
  17. </script>
  18. <script type="text/javascript" src="_static/jquery.js"></script>
  19. <script type="text/javascript" src="_static/underscore.js"></script>
  20. <script type="text/javascript" src="_static/doctools.js"></script>
  21. <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
  22. <script type="text/javascript" src="_static/js/theme.js"></script>
  23. <script type="text/javascript">
  24. jQuery(function () {
  25. SphinxRtdTheme.StickyNav.enable();
  26. });
  27. </script>
  28. <link rel="top" title="Cirkuix 0.5 documentation" href="index.html"/>
  29. <link rel="next" title="FlatCAM Objects" href="flatcamobj.html"/>
  30. <link rel="prev" title="Welcome to FlatCAM’s documentation!" href="index.html"/>
  31. <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
  32. </head>
  33. <body class="wy-body-for-nav" role="document">
  34. <div class="wy-grid-for-nav">
  35. <nav data-toggle="wy-nav-shift" class="wy-nav-side">
  36. <div class="wy-side-nav-search">
  37. <a href="index.html" class="icon icon-home"> Cirkuix</a>
  38. <div role="search">
  39. <form id ="rtd-search-form" class="wy-form" action="search.html" method="get">
  40. <input type="text" name="q" placeholder="Search docs" />
  41. <input type="hidden" name="check_keywords" value="yes" />
  42. <input type="hidden" name="area" value="default" />
  43. </form>
  44. </div>
  45. </div>
  46. <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
  47. <ul class="current">
  48. <li class="toctree-l1 current"><a class="current reference internal" href="">Camlib</a></li>
  49. <li class="toctree-l1"><a class="reference internal" href="flatcamobj.html">FlatCAM Objects</a></li>
  50. <li class="toctree-l1"><a class="reference internal" href="app.html">FlatCAM Application</a><ul>
  51. <li class="toctree-l2"><a class="reference internal" href="app.html#options">Options</a></li>
  52. <li class="toctree-l2"><a class="reference internal" href="app.html#module-FlatCAM">API</a></li>
  53. </ul>
  54. </li>
  55. </ul>
  56. </div>
  57. &nbsp;
  58. </nav>
  59. <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
  60. <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
  61. <i data-toggle="wy-nav-top" class="icon icon-reorder"></i>
  62. <a href="index.html">Cirkuix</a>
  63. </nav>
  64. <div class="wy-nav-content">
  65. <div class="rst-content">
  66. <div role="navigation" aria-label="breadcrumbs navigation">
  67. <ul class="wy-breadcrumbs">
  68. <li><a href="index.html">Docs</a> &raquo;</li>
  69. <li>Camlib</li>
  70. <li class="wy-breadcrumbs-aside">
  71. <a href="_sources/camlib.txt" rel="nofollow"> View page source</a>
  72. </li>
  73. </ul>
  74. <hr/>
  75. </div>
  76. <div role="main">
  77. <div class="section" id="module-camlib">
  78. <span id="camlib"></span><h1>Camlib<a class="headerlink" href="#module-camlib" title="Permalink to this headline">¶</a></h1>
  79. <dl class="class">
  80. <dt id="camlib.Geometry">
  81. <em class="property">class </em><tt class="descclassname">camlib.</tt><tt class="descname">Geometry</tt><a class="headerlink" href="#camlib.Geometry" title="Permalink to this definition">¶</a></dt>
  82. <dd><dl class="method">
  83. <dt id="camlib.Geometry.bounds">
  84. <tt class="descname">bounds</tt><big>(</big><big>)</big><a class="headerlink" href="#camlib.Geometry.bounds" title="Permalink to this definition">¶</a></dt>
  85. <dd><p>Returns coordinates of rectangular bounds
  86. of geometry: (xmin, ymin, xmax, ymax).</p>
  87. </dd></dl>
  88. <dl class="method">
  89. <dt id="camlib.Geometry.clear_polygon">
  90. <tt class="descname">clear_polygon</tt><big>(</big><em>polygon</em>, <em>tooldia</em>, <em>overlap=0.15</em><big>)</big><a class="headerlink" href="#camlib.Geometry.clear_polygon" title="Permalink to this definition">¶</a></dt>
  91. <dd><p>Creates geometry inside a polygon for a tool to cover
  92. the whole area.</p>
  93. </dd></dl>
  94. <dl class="method">
  95. <dt id="camlib.Geometry.convert_units">
  96. <tt class="descname">convert_units</tt><big>(</big><em>units</em><big>)</big><a class="headerlink" href="#camlib.Geometry.convert_units" title="Permalink to this definition">¶</a></dt>
  97. <dd><p>Converts the units of the object to <tt class="docutils literal"><span class="pre">units</span></tt> by scaling all
  98. the geometry appropriately. This call <tt class="docutils literal"><span class="pre">scale()</span></tt>. Don&#8217;t call
  99. it again in descendents.</p>
  100. <table class="docutils field-list" frame="void" rules="none">
  101. <col class="field-name" />
  102. <col class="field-body" />
  103. <tbody valign="top">
  104. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>units</strong> (<em>str</em>) &#8211; &#8220;IN&#8221; or &#8220;MM&#8221;</td>
  105. </tr>
  106. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">Scaling factor resulting from unit change.</td>
  107. </tr>
  108. <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">float</td>
  109. </tr>
  110. </tbody>
  111. </table>
  112. </dd></dl>
  113. <dl class="method">
  114. <dt id="camlib.Geometry.from_dict">
  115. <tt class="descname">from_dict</tt><big>(</big><em>d</em><big>)</big><a class="headerlink" href="#camlib.Geometry.from_dict" title="Permalink to this definition">¶</a></dt>
  116. <dd><p>Sets object&#8217;s attributes from a dictionary.
  117. Attributes to include are listed in <tt class="docutils literal"><span class="pre">self.ser_attrs</span></tt>.
  118. This method will look only for only and all the
  119. attributes in <tt class="docutils literal"><span class="pre">self.ser_attrs</span></tt>. They must all
  120. be present. Use only for deserializing saved
  121. objects.</p>
  122. <table class="docutils field-list" frame="void" rules="none">
  123. <col class="field-name" />
  124. <col class="field-body" />
  125. <tbody valign="top">
  126. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>d</strong> (<em>dict</em>) &#8211; Dictionary of attributes to set in the object.</td>
  127. </tr>
  128. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  129. </tr>
  130. </tbody>
  131. </table>
  132. </dd></dl>
  133. <dl class="method">
  134. <dt id="camlib.Geometry.get_empty_area">
  135. <tt class="descname">get_empty_area</tt><big>(</big><em>boundary=None</em><big>)</big><a class="headerlink" href="#camlib.Geometry.get_empty_area" title="Permalink to this definition">¶</a></dt>
  136. <dd><p>Returns the complement of self.solid_geometry within
  137. the given boundary polygon. If not specified, it defaults to
  138. the rectangular bounding box of self.solid_geometry.</p>
  139. </dd></dl>
  140. <dl class="method">
  141. <dt id="camlib.Geometry.isolation_geometry">
  142. <tt class="descname">isolation_geometry</tt><big>(</big><em>offset</em><big>)</big><a class="headerlink" href="#camlib.Geometry.isolation_geometry" title="Permalink to this definition">¶</a></dt>
  143. <dd><p>Creates contours around geometry at a given
  144. offset distance.</p>
  145. <table class="docutils field-list" frame="void" rules="none">
  146. <col class="field-name" />
  147. <col class="field-body" />
  148. <tbody valign="top">
  149. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>offset</strong> (<em>float</em>) &#8211; Offset distance.</td>
  150. </tr>
  151. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">The buffered geometry.</td>
  152. </tr>
  153. <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">Shapely.MultiPolygon or Shapely.Polygon</td>
  154. </tr>
  155. </tbody>
  156. </table>
  157. </dd></dl>
  158. <dl class="method">
  159. <dt id="camlib.Geometry.offset">
  160. <tt class="descname">offset</tt><big>(</big><em>vect</em><big>)</big><a class="headerlink" href="#camlib.Geometry.offset" title="Permalink to this definition">¶</a></dt>
  161. <dd><p>Offset the geometry by the given vector. Override this method.</p>
  162. <table class="docutils field-list" frame="void" rules="none">
  163. <col class="field-name" />
  164. <col class="field-body" />
  165. <tbody valign="top">
  166. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>vect</strong> (<em>tuple</em>) &#8211; (x, y) vector by which to offset the object.</td>
  167. </tr>
  168. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  169. </tr>
  170. </tbody>
  171. </table>
  172. </dd></dl>
  173. <dl class="method">
  174. <dt id="camlib.Geometry.scale">
  175. <tt class="descname">scale</tt><big>(</big><em>factor</em><big>)</big><a class="headerlink" href="#camlib.Geometry.scale" title="Permalink to this definition">¶</a></dt>
  176. <dd><p>Scales all of the object&#8217;s geometry by a given factor. Override
  177. this method.
  178. :param factor: Number by which to scale.
  179. :type factor: float
  180. :return: None
  181. :rtype: None</p>
  182. </dd></dl>
  183. <dl class="method">
  184. <dt id="camlib.Geometry.size">
  185. <tt class="descname">size</tt><big>(</big><big>)</big><a class="headerlink" href="#camlib.Geometry.size" title="Permalink to this definition">¶</a></dt>
  186. <dd><p>Returns (width, height) of rectangular
  187. bounds of geometry.</p>
  188. </dd></dl>
  189. <dl class="method">
  190. <dt id="camlib.Geometry.to_dict">
  191. <tt class="descname">to_dict</tt><big>(</big><big>)</big><a class="headerlink" href="#camlib.Geometry.to_dict" title="Permalink to this definition">¶</a></dt>
  192. <dd><p>Returns a respresentation of the object as a dictionary.
  193. Attributes to include are listed in <tt class="docutils literal"><span class="pre">self.ser_attrs</span></tt>.</p>
  194. <table class="docutils field-list" frame="void" rules="none">
  195. <col class="field-name" />
  196. <col class="field-body" />
  197. <tbody valign="top">
  198. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">A dictionary-encoded copy of the object.</td>
  199. </tr>
  200. <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">dict</td>
  201. </tr>
  202. </tbody>
  203. </table>
  204. </dd></dl>
  205. </dd></dl>
  206. <dl class="class">
  207. <dt id="camlib.Gerber">
  208. <em class="property">class </em><tt class="descclassname">camlib.</tt><tt class="descname">Gerber</tt><big>(</big><em>Geometry</em><big>)</big><a class="headerlink" href="#camlib.Gerber" title="Permalink to this definition">¶</a></dt>
  209. <dd><p><strong>ATTRIBUTES</strong></p>
  210. <ul class="simple">
  211. <li><tt class="docutils literal"><span class="pre">apertures</span></tt> (dict): The keys are names/identifiers of each aperture.
  212. The values are dictionaries key/value pairs which describe the aperture. The
  213. type key is always present and the rest depend on the key:</li>
  214. </ul>
  215. <table border="1" class="docutils">
  216. <colgroup>
  217. <col width="24%" />
  218. <col width="76%" />
  219. </colgroup>
  220. <thead valign="bottom">
  221. <tr class="row-odd"><th class="head">Key</th>
  222. <th class="head">Value</th>
  223. </tr>
  224. </thead>
  225. <tbody valign="top">
  226. <tr class="row-even"><td>type</td>
  227. <td>(str) &#8220;C&#8221;, &#8220;R&#8221;, or &#8220;O&#8221;</td>
  228. </tr>
  229. <tr class="row-odd"><td>others</td>
  230. <td>Depend on <tt class="docutils literal"><span class="pre">type</span></tt></td>
  231. </tr>
  232. </tbody>
  233. </table>
  234. <ul class="simple">
  235. <li><tt class="docutils literal"><span class="pre">paths</span></tt> (list): A path is described by a line an aperture that follows that
  236. line. Each paths[i] is a dictionary:</li>
  237. </ul>
  238. <table border="1" class="docutils">
  239. <colgroup>
  240. <col width="20%" />
  241. <col width="80%" />
  242. </colgroup>
  243. <thead valign="bottom">
  244. <tr class="row-odd"><th class="head">Key</th>
  245. <th class="head">Value</th>
  246. </tr>
  247. </thead>
  248. <tbody valign="top">
  249. <tr class="row-even"><td>linestring</td>
  250. <td>(Shapely.LineString) The actual path.</td>
  251. </tr>
  252. <tr class="row-odd"><td>aperture</td>
  253. <td>(str) The key for an aperture in apertures.</td>
  254. </tr>
  255. </tbody>
  256. </table>
  257. <ul class="simple">
  258. <li><tt class="docutils literal"><span class="pre">flashes</span></tt> (list): Flashes are single-point strokes of an aperture. Each
  259. is a dictionary:</li>
  260. </ul>
  261. <table border="1" class="docutils">
  262. <colgroup>
  263. <col width="20%" />
  264. <col width="80%" />
  265. </colgroup>
  266. <thead valign="bottom">
  267. <tr class="row-odd"><th class="head">Key</th>
  268. <th class="head">Value</th>
  269. </tr>
  270. </thead>
  271. <tbody valign="top">
  272. <tr class="row-even"><td>loc</td>
  273. <td>(list) [x (float), y (float)] coordinates.</td>
  274. </tr>
  275. <tr class="row-odd"><td>aperture</td>
  276. <td>(str) The key for an aperture in apertures.</td>
  277. </tr>
  278. </tbody>
  279. </table>
  280. <ul class="simple">
  281. <li><tt class="docutils literal"><span class="pre">regions</span></tt> (list): Are surfaces defined by a polygon (Shapely.Polygon),
  282. which have an exterior and zero or more interiors. An aperture is also
  283. associated with a region. Each is a dictionary:</li>
  284. </ul>
  285. <table border="1" class="docutils">
  286. <colgroup>
  287. <col width="18%" />
  288. <col width="82%" />
  289. </colgroup>
  290. <thead valign="bottom">
  291. <tr class="row-odd"><th class="head">Key</th>
  292. <th class="head">Value</th>
  293. </tr>
  294. </thead>
  295. <tbody valign="top">
  296. <tr class="row-even"><td>polygon</td>
  297. <td>(Shapely.Polygon) The polygon defining the region.</td>
  298. </tr>
  299. <tr class="row-odd"><td>aperture</td>
  300. <td>(str) The key for an aperture in apertures.</td>
  301. </tr>
  302. </tbody>
  303. </table>
  304. <ul class="simple">
  305. <li><tt class="docutils literal"><span class="pre">flash_geometry</span></tt> (list): List of (Shapely) geometric object resulting
  306. from <tt class="docutils literal"><span class="pre">flashes</span></tt>. These are generated from <tt class="docutils literal"><span class="pre">flashes</span></tt> in <tt class="docutils literal"><span class="pre">do_flashes()</span></tt>.</li>
  307. <li><tt class="docutils literal"><span class="pre">buffered_paths</span></tt> (list): List of (Shapely) polygons resulting from
  308. <em>buffering</em> (or thickening) the <tt class="docutils literal"><span class="pre">paths</span></tt> with the aperture. These are
  309. generated from <tt class="docutils literal"><span class="pre">paths</span></tt> in <tt class="docutils literal"><span class="pre">buffer_paths()</span></tt>.</li>
  310. </ul>
  311. <p><strong>USAGE</strong>:</p>
  312. <div class="highlight-python"><div class="highlight"><pre><span class="n">g</span> <span class="o">=</span> <span class="n">Gerber</span><span class="p">()</span>
  313. <span class="n">g</span><span class="o">.</span><span class="n">parse_file</span><span class="p">(</span><span class="n">filename</span><span class="p">)</span>
  314. <span class="n">g</span><span class="o">.</span><span class="n">create_geometry</span><span class="p">()</span>
  315. <span class="n">do_something</span><span class="p">(</span><span class="n">s</span><span class="o">.</span><span class="n">solid_geometry</span><span class="p">)</span>
  316. </pre></div>
  317. </div>
  318. <dl class="method">
  319. <dt id="camlib.Gerber.aperture_parse">
  320. <tt class="descname">aperture_parse</tt><big>(</big><em>gline</em><big>)</big><a class="headerlink" href="#camlib.Gerber.aperture_parse" title="Permalink to this definition">¶</a></dt>
  321. <dd><p>Parse gerber aperture definition into dictionary of apertures.
  322. The following kinds and their attributes are supported:</p>
  323. <ul class="simple">
  324. <li><em>Circular (C)</em>: size (float)</li>
  325. <li><em>Rectangle (R)</em>: width (float), height (float)</li>
  326. <li><em>Obround (O)</em>: width (float), height (float).</li>
  327. </ul>
  328. <table class="docutils field-list" frame="void" rules="none">
  329. <col class="field-name" />
  330. <col class="field-body" />
  331. <tbody valign="top">
  332. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>gline</strong> (<em>str</em>) &#8211; Line of Gerber code known to have an aperture definition.</td>
  333. </tr>
  334. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">Identifier of the aperture.</td>
  335. </tr>
  336. <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
  337. </tr>
  338. </tbody>
  339. </table>
  340. </dd></dl>
  341. <dl class="method">
  342. <dt id="camlib.Gerber.buffer_paths">
  343. <tt class="descname">buffer_paths</tt><big>(</big><big>)</big><a class="headerlink" href="#camlib.Gerber.buffer_paths" title="Permalink to this definition">¶</a></dt>
  344. <dd><p>This is part of the parsing process. &#8220;Thickens&#8221; the paths
  345. by their appertures. This will only work for circular appertures.
  346. :return: None</p>
  347. </dd></dl>
  348. <dl class="method">
  349. <dt id="camlib.Gerber.create_geometry">
  350. <tt class="descname">create_geometry</tt><big>(</big><big>)</big><a class="headerlink" href="#camlib.Gerber.create_geometry" title="Permalink to this definition">¶</a></dt>
  351. <dd><p>Geometry from a Gerber file is made up entirely of polygons.
  352. Every stroke (linear or circular) has an aperture which gives
  353. it thickness. Additionally, aperture strokes have non-zero area,
  354. and regions naturally do as well.</p>
  355. <p>:rtype : None
  356. :return: None</p>
  357. </dd></dl>
  358. <dl class="method">
  359. <dt id="camlib.Gerber.do_flashes">
  360. <tt class="descname">do_flashes</tt><big>(</big><big>)</big><a class="headerlink" href="#camlib.Gerber.do_flashes" title="Permalink to this definition">¶</a></dt>
  361. <dd><p>Creates geometry for Gerber flashes (aperture on a single point).</p>
  362. </dd></dl>
  363. <dl class="method">
  364. <dt id="camlib.Gerber.fix_regions">
  365. <tt class="descname">fix_regions</tt><big>(</big><big>)</big><a class="headerlink" href="#camlib.Gerber.fix_regions" title="Permalink to this definition">¶</a></dt>
  366. <dd><p>Overwrites the region polygons with fixed
  367. versions if found to be invalid (according to Shapely).</p>
  368. </dd></dl>
  369. <dl class="attribute">
  370. <dt id="camlib.Gerber.frac_digits">
  371. <tt class="descname">frac_digits</tt><em class="property"> = None</em><a class="headerlink" href="#camlib.Gerber.frac_digits" title="Permalink to this definition">¶</a></dt>
  372. <dd><p>Number of fraction digits in Gerber numbers. Used during parsing.</p>
  373. </dd></dl>
  374. <dl class="method">
  375. <dt id="camlib.Gerber.get_bounding_box">
  376. <tt class="descname">get_bounding_box</tt><big>(</big><em>margin=0.0</em>, <em>rounded=False</em><big>)</big><a class="headerlink" href="#camlib.Gerber.get_bounding_box" title="Permalink to this definition">¶</a></dt>
  377. <dd><p>Creates and returns a rectangular polygon bounding at a distance of
  378. margin from the object&#8217;s <tt class="docutils literal"><span class="pre">solid_geometry</span></tt>. If margin &gt; 0, the polygon
  379. can optionally have rounded corners of radius equal to margin.</p>
  380. <table class="docutils field-list" frame="void" rules="none">
  381. <col class="field-name" />
  382. <col class="field-body" />
  383. <tbody valign="top">
  384. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  385. <li><strong>margin</strong> (<em>float</em>) &#8211; Distance to enlarge the rectangular bounding
  386. box in both positive and negative, x and y axes.</li>
  387. <li><strong>rounded</strong> (<em>bool</em>) &#8211; Wether or not to have rounded corners.</li>
  388. </ul>
  389. </td>
  390. </tr>
  391. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">The bounding box.</p>
  392. </td>
  393. </tr>
  394. <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">Shapely.Polygon</p>
  395. </td>
  396. </tr>
  397. </tbody>
  398. </table>
  399. </dd></dl>
  400. <dl class="attribute">
  401. <dt id="camlib.Gerber.int_digits">
  402. <tt class="descname">int_digits</tt><em class="property"> = None</em><a class="headerlink" href="#camlib.Gerber.int_digits" title="Permalink to this definition">¶</a></dt>
  403. <dd><p>Number of integer digits in Gerber numbers. Used during parsing.</p>
  404. </dd></dl>
  405. <dl class="method">
  406. <dt id="camlib.Gerber.offset">
  407. <tt class="descname">offset</tt><big>(</big><em>vect</em><big>)</big><a class="headerlink" href="#camlib.Gerber.offset" title="Permalink to this definition">¶</a></dt>
  408. <dd><p>Offsets the objects&#8217; geometry on the XY plane by a given vector.
  409. These are:</p>
  410. <ul class="simple">
  411. <li><tt class="docutils literal"><span class="pre">paths</span></tt></li>
  412. <li><tt class="docutils literal"><span class="pre">regions</span></tt></li>
  413. <li><tt class="docutils literal"><span class="pre">flashes</span></tt></li>
  414. </ul>
  415. <p>Then <tt class="docutils literal"><span class="pre">buffered_paths</span></tt>, <tt class="docutils literal"><span class="pre">flash_geometry</span></tt> and <tt class="docutils literal"><span class="pre">solid_geometry</span></tt>
  416. are re-created with <tt class="docutils literal"><span class="pre">self.create_geometry()</span></tt>.
  417. :param vect: (x, y) offset vector.
  418. :type vect: tuple
  419. :return: None</p>
  420. </dd></dl>
  421. <dl class="method">
  422. <dt id="camlib.Gerber.parse_file">
  423. <tt class="descname">parse_file</tt><big>(</big><em>filename</em><big>)</big><a class="headerlink" href="#camlib.Gerber.parse_file" title="Permalink to this definition">¶</a></dt>
  424. <dd><p>Calls Gerber.parse_lines() with array of lines
  425. read from the given file.</p>
  426. </dd></dl>
  427. <dl class="method">
  428. <dt id="camlib.Gerber.parse_lines">
  429. <tt class="descname">parse_lines</tt><big>(</big><em>glines</em><big>)</big><a class="headerlink" href="#camlib.Gerber.parse_lines" title="Permalink to this definition">¶</a></dt>
  430. <dd><p>Main Gerber parser. Reads Gerber and populates <tt class="docutils literal"><span class="pre">self.paths</span></tt>, <tt class="docutils literal"><span class="pre">self.apertures</span></tt>,
  431. <tt class="docutils literal"><span class="pre">self.flashes</span></tt>, <tt class="docutils literal"><span class="pre">self.regions</span></tt> and <tt class="docutils literal"><span class="pre">self.units</span></tt>.</p>
  432. <table class="docutils field-list" frame="void" rules="none">
  433. <col class="field-name" />
  434. <col class="field-body" />
  435. <tbody valign="top">
  436. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>glines</strong> (<em>list</em>) &#8211; Gerber code as list of strings, each element being
  437. one line of the source file.</td>
  438. </tr>
  439. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  440. </tr>
  441. <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">None</td>
  442. </tr>
  443. </tbody>
  444. </table>
  445. </dd></dl>
  446. <dl class="method">
  447. <dt id="camlib.Gerber.scale">
  448. <tt class="descname">scale</tt><big>(</big><em>factor</em><big>)</big><a class="headerlink" href="#camlib.Gerber.scale" title="Permalink to this definition">¶</a></dt>
  449. <dd><p>Scales the objects&#8217; geometry on the XY plane by a given factor.
  450. These are:</p>
  451. <ul class="simple">
  452. <li><tt class="docutils literal"><span class="pre">apertures</span></tt></li>
  453. <li><tt class="docutils literal"><span class="pre">paths</span></tt></li>
  454. <li><tt class="docutils literal"><span class="pre">regions</span></tt></li>
  455. <li><tt class="docutils literal"><span class="pre">flashes</span></tt></li>
  456. </ul>
  457. <p>Then <tt class="docutils literal"><span class="pre">buffered_paths</span></tt>, <tt class="docutils literal"><span class="pre">flash_geometry</span></tt> and <tt class="docutils literal"><span class="pre">solid_geometry</span></tt>
  458. are re-created with <tt class="docutils literal"><span class="pre">self.create_geometry()</span></tt>.
  459. :param factor: Number by which to scale.
  460. :type factor: float
  461. :rtype : None</p>
  462. </dd></dl>
  463. </dd></dl>
  464. <dl class="class">
  465. <dt id="camlib.Excellon">
  466. <em class="property">class </em><tt class="descclassname">camlib.</tt><tt class="descname">Excellon</tt><a class="headerlink" href="#camlib.Excellon" title="Permalink to this definition">¶</a></dt>
  467. <dd><p><em>ATTRIBUTES</em></p>
  468. <ul class="simple">
  469. <li><tt class="docutils literal"><span class="pre">tools</span></tt> (dict): The key is the tool name and the value is
  470. the size (diameter).</li>
  471. <li><tt class="docutils literal"><span class="pre">drills</span></tt> (list): Each is a dictionary:</li>
  472. </ul>
  473. <table border="1" class="docutils">
  474. <colgroup>
  475. <col width="31%" />
  476. <col width="69%" />
  477. </colgroup>
  478. <thead valign="bottom">
  479. <tr class="row-odd"><th class="head">Key</th>
  480. <th class="head">Value</th>
  481. </tr>
  482. </thead>
  483. <tbody valign="top">
  484. <tr class="row-even"><td>point</td>
  485. <td>(Shapely.Point) Where to drill</td>
  486. </tr>
  487. <tr class="row-odd"><td>tool</td>
  488. <td>(str) A key in <tt class="docutils literal"><span class="pre">tools</span></tt></td>
  489. </tr>
  490. </tbody>
  491. </table>
  492. <dl class="method">
  493. <dt id="camlib.Excellon.offset">
  494. <tt class="descname">offset</tt><big>(</big><em>vect</em><big>)</big><a class="headerlink" href="#camlib.Excellon.offset" title="Permalink to this definition">¶</a></dt>
  495. <dd><p>Offsets geometry on the XY plane in the object by a given vector.</p>
  496. <table class="docutils field-list" frame="void" rules="none">
  497. <col class="field-name" />
  498. <col class="field-body" />
  499. <tbody valign="top">
  500. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>vect</strong> (<em>tuple</em>) &#8211; (x, y) offset vector.</td>
  501. </tr>
  502. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  503. </tr>
  504. </tbody>
  505. </table>
  506. </dd></dl>
  507. <dl class="method">
  508. <dt id="camlib.Excellon.parse_file">
  509. <tt class="descname">parse_file</tt><big>(</big><em>filename</em><big>)</big><a class="headerlink" href="#camlib.Excellon.parse_file" title="Permalink to this definition">¶</a></dt>
  510. <dd><p>Reads the specified file as array of lines as
  511. passes it to <tt class="docutils literal"><span class="pre">parse_lines()</span></tt>.</p>
  512. <table class="docutils field-list" frame="void" rules="none">
  513. <col class="field-name" />
  514. <col class="field-body" />
  515. <tbody valign="top">
  516. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>filename</strong> (<em>str</em>) &#8211; The file to be read and parsed.</td>
  517. </tr>
  518. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  519. </tr>
  520. </tbody>
  521. </table>
  522. </dd></dl>
  523. <dl class="method">
  524. <dt id="camlib.Excellon.parse_lines">
  525. <tt class="descname">parse_lines</tt><big>(</big><em>elines</em><big>)</big><a class="headerlink" href="#camlib.Excellon.parse_lines" title="Permalink to this definition">¶</a></dt>
  526. <dd><p>Main Excellon parser.</p>
  527. <table class="docutils field-list" frame="void" rules="none">
  528. <col class="field-name" />
  529. <col class="field-body" />
  530. <tbody valign="top">
  531. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>elines</strong> (<em>list</em>) &#8211; List of strings, each being a line of Excellon code.</td>
  532. </tr>
  533. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  534. </tr>
  535. </tbody>
  536. </table>
  537. </dd></dl>
  538. <dl class="method">
  539. <dt id="camlib.Excellon.scale">
  540. <tt class="descname">scale</tt><big>(</big><em>factor</em><big>)</big><a class="headerlink" href="#camlib.Excellon.scale" title="Permalink to this definition">¶</a></dt>
  541. <dd><p>Scales geometry on the XY plane in the object by a given factor.
  542. Tool sizes, feedrates an Z-plane dimensions are untouched.</p>
  543. <table class="docutils field-list" frame="void" rules="none">
  544. <col class="field-name" />
  545. <col class="field-body" />
  546. <tbody valign="top">
  547. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>factor</strong> (<em>float</em>) &#8211; Number by which to scale the object.</td>
  548. </tr>
  549. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  550. </tr>
  551. <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">NOne</td>
  552. </tr>
  553. </tbody>
  554. </table>
  555. </dd></dl>
  556. </dd></dl>
  557. <dl class="class">
  558. <dt id="camlib.CNCjob">
  559. <em class="property">class </em><tt class="descclassname">camlib.</tt><tt class="descname">CNCjob</tt><big>(</big><em>units='in'</em>, <em>kind='generic'</em>, <em>z_move=0.1</em>, <em>feedrate=3.0</em>, <em>z_cut=-0.002</em>, <em>tooldia=0.0</em><big>)</big><a class="headerlink" href="#camlib.CNCjob" title="Permalink to this definition">¶</a></dt>
  560. <dd><p>Represents work to be done by a CNC machine.</p>
  561. <p><em>ATTRIBUTES</em></p>
  562. <ul class="simple">
  563. <li><tt class="docutils literal"><span class="pre">gcode_parsed</span></tt> (list): Each is a dictionary:</li>
  564. </ul>
  565. <table border="1" class="docutils">
  566. <colgroup>
  567. <col width="34%" />
  568. <col width="66%" />
  569. </colgroup>
  570. <thead valign="bottom">
  571. <tr class="row-odd"><th class="head">Key</th>
  572. <th class="head">Value</th>
  573. </tr>
  574. </thead>
  575. <tbody valign="top">
  576. <tr class="row-even"><td>geom</td>
  577. <td>(Shapely.LineString) Tool path (XY plane)</td>
  578. </tr>
  579. <tr class="row-odd"><td>kind</td>
  580. <td>(string) &#8220;AB&#8221;, A is &#8220;T&#8221; (travel) or
  581. &#8220;C&#8221; (cut). B is &#8220;F&#8221; (fast) or &#8220;S&#8221; (slow).</td>
  582. </tr>
  583. </tbody>
  584. </table>
  585. <dl class="method">
  586. <dt id="camlib.CNCjob.gcode_parse">
  587. <tt class="descname">gcode_parse</tt><big>(</big><big>)</big><a class="headerlink" href="#camlib.CNCjob.gcode_parse" title="Permalink to this definition">¶</a></dt>
  588. <dd><p>G-Code parser (from self.gcode). Generates dictionary with
  589. single-segment LineString&#8217;s and &#8220;kind&#8221; indicating cut or travel,
  590. fast or feedrate speed.</p>
  591. </dd></dl>
  592. <dl class="method">
  593. <dt id="camlib.CNCjob.generate_from_excellon">
  594. <tt class="descname">generate_from_excellon</tt><big>(</big><em>exobj</em><big>)</big><a class="headerlink" href="#camlib.CNCjob.generate_from_excellon" title="Permalink to this definition">¶</a></dt>
  595. <dd><p>Generates G-code for drilling from Excellon object.
  596. self.gcode becomes a list, each element is a
  597. different job for each tool in the excellon code.</p>
  598. </dd></dl>
  599. <dl class="method">
  600. <dt id="camlib.CNCjob.generate_from_excellon_by_tool">
  601. <tt class="descname">generate_from_excellon_by_tool</tt><big>(</big><em>exobj</em>, <em>tools='all'</em><big>)</big><a class="headerlink" href="#camlib.CNCjob.generate_from_excellon_by_tool" title="Permalink to this definition">¶</a></dt>
  602. <dd><p>Creates gcode for this object from an Excellon object
  603. for the specified tools.</p>
  604. <table class="docutils field-list" frame="void" rules="none">
  605. <col class="field-name" />
  606. <col class="field-body" />
  607. <tbody valign="top">
  608. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  609. <li><strong>exobj</strong> (<em>Excellon</em>) &#8211; Excellon object to process</li>
  610. <li><strong>tools</strong> &#8211; Comma separated tool names</li>
  611. </ul>
  612. </td>
  613. </tr>
  614. <tr class="field-even field"><th class="field-name">Type:</th><td class="field-body"><p class="first">tools: str</p>
  615. </td>
  616. </tr>
  617. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">None</p>
  618. </td>
  619. </tr>
  620. <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">None</p>
  621. </td>
  622. </tr>
  623. </tbody>
  624. </table>
  625. </dd></dl>
  626. <dl class="method">
  627. <dt id="camlib.CNCjob.generate_from_geometry">
  628. <tt class="descname">generate_from_geometry</tt><big>(</big><em>geometry</em>, <em>append=True</em>, <em>tooldia=None</em>, <em>tolerance=0</em><big>)</big><a class="headerlink" href="#camlib.CNCjob.generate_from_geometry" title="Permalink to this definition">¶</a></dt>
  629. <dd><p>Generates G-Code from a Geometry object. Stores in <tt class="docutils literal"><span class="pre">self.gcode</span></tt>.</p>
  630. <table class="docutils field-list" frame="void" rules="none">
  631. <col class="field-name" />
  632. <col class="field-body" />
  633. <tbody valign="top">
  634. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  635. <li><strong>geometry</strong> (<em>Geometry</em>) &#8211; Geometry defining the toolpath</li>
  636. <li><strong>append</strong> (<em>bool</em>) &#8211; Wether to append to self.gcode or re-write it.</li>
  637. <li><strong>tooldia</strong> (<em>bool</em>) &#8211; If given, sets the tooldia property but does
  638. not affect the process in any other way.</li>
  639. <li><strong>tolerance</strong> &#8211; All points in the simplified object will be within the
  640. tolerance distance of the original geometry.</li>
  641. </ul>
  642. </td>
  643. </tr>
  644. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">None</p>
  645. </td>
  646. </tr>
  647. <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">None</p>
  648. </td>
  649. </tr>
  650. </tbody>
  651. </table>
  652. </dd></dl>
  653. <dl class="method">
  654. <dt id="camlib.CNCjob.linear2gcode">
  655. <tt class="descname">linear2gcode</tt><big>(</big><em>linear</em>, <em>tolerance=0</em><big>)</big><a class="headerlink" href="#camlib.CNCjob.linear2gcode" title="Permalink to this definition">¶</a></dt>
  656. <dd><p>Generates G-code to cut along the linear feature.</p>
  657. <table class="docutils field-list" frame="void" rules="none">
  658. <col class="field-name" />
  659. <col class="field-body" />
  660. <tbody valign="top">
  661. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  662. <li><strong>linear</strong> &#8211; The path to cut along.</li>
  663. <li><strong>tolerance</strong> (<em>float</em>) &#8211; All points in the simplified object will be within the
  664. tolerance distance of the original geometry.</li>
  665. </ul>
  666. </td>
  667. </tr>
  668. <tr class="field-even field"><th class="field-name">Type:</th><td class="field-body"><p class="first">Shapely.LinearRing or Shapely.Linear String</p>
  669. </td>
  670. </tr>
  671. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">G-code to cut alon the linear feature.</p>
  672. </td>
  673. </tr>
  674. <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">str</p>
  675. </td>
  676. </tr>
  677. </tbody>
  678. </table>
  679. </dd></dl>
  680. <dl class="method">
  681. <dt id="camlib.CNCjob.offset">
  682. <tt class="descname">offset</tt><big>(</big><em>vect</em><big>)</big><a class="headerlink" href="#camlib.CNCjob.offset" title="Permalink to this definition">¶</a></dt>
  683. <dd><p>Offsets all the geometry on the XY plane in the object by the
  684. given vector.</p>
  685. <table class="docutils field-list" frame="void" rules="none">
  686. <col class="field-name" />
  687. <col class="field-body" />
  688. <tbody valign="top">
  689. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>vect</strong> (<em>tuple</em>) &#8211; (x, y) offset vector.</td>
  690. </tr>
  691. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  692. </tr>
  693. </tbody>
  694. </table>
  695. </dd></dl>
  696. <dl class="method">
  697. <dt id="camlib.CNCjob.plot2">
  698. <tt class="descname">plot2</tt><big>(</big><em>axes, tooldia=None, dpi=75, margin=0.1, color={'C': ['#5E6CFF', '#4650BD'], 'T': ['#F0E24D', '#B5AB3A']}, alpha={'C': 1.0, 'T': 0.3}, tool_tolerance=0.0005</em><big>)</big><a class="headerlink" href="#camlib.CNCjob.plot2" title="Permalink to this definition">¶</a></dt>
  699. <dd><p>Plots the G-code job onto the given axes.</p>
  700. <table class="docutils field-list" frame="void" rules="none">
  701. <col class="field-name" />
  702. <col class="field-body" />
  703. <tbody valign="top">
  704. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  705. <li><strong>axes</strong> &#8211; Matplotlib axes on which to plot.</li>
  706. <li><strong>tooldia</strong> &#8211; Tool diameter.</li>
  707. <li><strong>dpi</strong> &#8211; Not used!</li>
  708. <li><strong>margin</strong> &#8211; Not used!</li>
  709. <li><strong>color</strong> &#8211; Color specification.</li>
  710. <li><strong>alpha</strong> &#8211; Transparency specification.</li>
  711. <li><strong>tool_tolerance</strong> &#8211; Tolerance when drawing the toolshape.</li>
  712. </ul>
  713. </td>
  714. </tr>
  715. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">None</p>
  716. </td>
  717. </tr>
  718. </tbody>
  719. </table>
  720. </dd></dl>
  721. <dl class="method">
  722. <dt id="camlib.CNCjob.polygon2gcode">
  723. <tt class="descname">polygon2gcode</tt><big>(</big><em>polygon</em>, <em>tolerance=0</em><big>)</big><a class="headerlink" href="#camlib.CNCjob.polygon2gcode" title="Permalink to this definition">¶</a></dt>
  724. <dd><p>Creates G-Code for the exterior and all interior paths
  725. of a polygon.</p>
  726. <table class="docutils field-list" frame="void" rules="none">
  727. <col class="field-name" />
  728. <col class="field-body" />
  729. <tbody valign="top">
  730. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  731. <li><strong>polygon</strong> (<em>Shapely.Polygon</em>) &#8211; A Shapely.Polygon</li>
  732. <li><strong>tolerance</strong> (<em>float</em>) &#8211; All points in the simplified object will be within the
  733. tolerance distance of the original geometry.</li>
  734. </ul>
  735. </td>
  736. </tr>
  737. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">G-code to cut along polygon.</p>
  738. </td>
  739. </tr>
  740. <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">str</p>
  741. </td>
  742. </tr>
  743. </tbody>
  744. </table>
  745. </dd></dl>
  746. <dl class="method">
  747. <dt id="camlib.CNCjob.pre_parse">
  748. <tt class="descname">pre_parse</tt><big>(</big><em>gtext</em><big>)</big><a class="headerlink" href="#camlib.CNCjob.pre_parse" title="Permalink to this definition">¶</a></dt>
  749. <dd><p>Separates parts of the G-Code text into a list of dictionaries.
  750. Used by <tt class="docutils literal"><span class="pre">self.gcode_parse()</span></tt>.</p>
  751. <table class="docutils field-list" frame="void" rules="none">
  752. <col class="field-name" />
  753. <col class="field-body" />
  754. <tbody valign="top">
  755. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>gtext</strong> &#8211; A single string with g-code</td>
  756. </tr>
  757. </tbody>
  758. </table>
  759. </dd></dl>
  760. <dl class="method">
  761. <dt id="camlib.CNCjob.scale">
  762. <tt class="descname">scale</tt><big>(</big><em>factor</em><big>)</big><a class="headerlink" href="#camlib.CNCjob.scale" title="Permalink to this definition">¶</a></dt>
  763. <dd><p>Scales all the geometry on the XY plane in the object by the
  764. given factor. Tool sizes, feedrates, or Z-axis dimensions are
  765. not altered.</p>
  766. <table class="docutils field-list" frame="void" rules="none">
  767. <col class="field-name" />
  768. <col class="field-body" />
  769. <tbody valign="top">
  770. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>factor</strong> (<em>float</em>) &#8211; Number by which to scale the object.</td>
  771. </tr>
  772. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  773. </tr>
  774. <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">None</td>
  775. </tr>
  776. </tbody>
  777. </table>
  778. </dd></dl>
  779. </dd></dl>
  780. </div>
  781. </div>
  782. <footer>
  783. <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
  784. <a href="flatcamobj.html" class="btn btn-neutral float-right" title="FlatCAM Objects"/>Next <span class="icon icon-circle-arrow-right"></span></a>
  785. <a href="index.html" class="btn btn-neutral" title="Welcome to FlatCAM’s documentation!"><span class="icon icon-circle-arrow-left"></span> Previous</a>
  786. </div>
  787. <hr/>
  788. <div role="contentinfo">
  789. <p>
  790. &copy; Copyright 2014, Juan Pablo Caram.
  791. </p>
  792. </div>
  793. <a href="https://github.com/snide/sphinx_rtd_theme">Sphinx theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>
  794. </footer>
  795. </div>
  796. </div>
  797. </section>
  798. </div>
  799. </body>
  800. </html>