Python: module skeinforge_application.skeinforge_plugins.craft_plugins.coil

skeinforge_application.skeinforge_plugins.craft_plugins.coil ($Date: 2008/21/04 $) | index /home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/skeinforge_application/skeinforge_plugins/craft_plugins/coil.py

Previous / Next / Contents

`
Coil is a script to coil wire or filament around an object.
Operation
Settings
Minimum Tool Distance
Examples
`

## Operation

The default 'Activate Coil' checkbox is on. When it is on, the functions described below will work, when it is off, the functions will not be called.

## Settings

### Minimum Tool Distance

Default is twenty millimeters.
Defines the minimum distance between the wire dispenser and the object. The 'Minimum Tool Distance' should be set to the maximum radius of the wire dispenser, times at least 1.3 to get a reasonable safety margin.

## Examples

The following examples coil the file Screw Holder Bottom.stl. The examples are run in a terminal in the folder which contains Screw Holder Bottom.stl and coil.py.
> python coil.py
This brings up the coil dialog.
> python coil.py Screw Holder Bottom.stl
The coil tool is parsing the file:
Screw Holder Bottom.stl
..
The coil tool has created the file:
Screw Holder Bottom_coil.gcode

Previous / Next / Contents

Modules

``

__init__ fabmetheus_utilities.archive fabmetheus_utilities.euclidean fabmetheus_utilities.fabmetheus_tools.fabmetheus_interpret | fabmetheus_utilities.gcodec fabmetheus_utilities.intercircle os fabmetheus_utilities.settings | skeinforge_application.skeinforge_utilities.skeinforge_craft skeinforge_application.skeinforge_utilities.skeinforge_polyfile skeinforge_application.skeinforge_utilities.skeinforge_profile sys | fabmetheus_utilities.geometry.solids.triangle_mesh

Classes

``

CoilRepository
CoilSkein

class CoilRepository
`` | `A class to handle the coil settings. `

Methods defined here:

__init__(self)
  `Set the default settings, execute title & settings fileName.`

execute(self)
  `Coil button has been clicked.`

class CoilSkein
`` | `A class to coil a skein of extrusions. `

Methods defined here:

__init__(self)

addCoilLayer(self, boundaryLayers, radius, z)
  `Add a coil layer.`

addCoilLayers(self)
  `Add the coil layers.`

addCoilToThread(self, beginLocation, endZ, loop, thread)
  `Add a coil to the thread.`

addGcodeFromThread(self, thread)
  `Add a thread to the output.`

getCraftedGcode(self, gcodeText, repository)
  `Parse gcode text and store the coil gcode.`

parseBoundaries(self)
  `Parse the boundaries and add them to the boundary layers.`

parseInitialization(self)
  `Parse gcode initialization and store the parameters.`

parseUntilLayer(self)
  `Parse until the layer line and add it to the coil skein.`

Functions

``

getCraftedText(fileName, gcodeText='', repository=None)
  `Coil the file or gcodeText.`

getCraftedTextFromText(gcodeText, repository=None)
  `Coil a gcode linear move gcodeText.`

getNewRepository()
  `Get new repository.`

main()
  `Display the coil dialog.`

writeOutput(fileName, shouldAnalyze=True)
  `Coil a gcode linear move file.`

Data
`` |  | __author__ = 'Enrique Perez (perez_enrique@yahoo.com)' __date__ = '$Date: 2008/21/04 $' __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' absolute_import = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)

Author
`` |  | Enrique Perez (perez_enrique@yahoo.com)