skeinforge_tools.craft_plugins.coil ($Date: 2008/21/04 $)
index
/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/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


> python
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)
[GCC 4.2.1 (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import coil
>>> coil.main()
This brings up the coil dialog.


>>> coil.writeOutput( 'Screw Holder Bottom.stl' )
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__
skeinforge_tools.skeinforge_utilities.consecution
skeinforge_tools.skeinforge_utilities.euclidean
skeinforge_tools.skeinforge_utilities.gcodec
skeinforge_tools.skeinforge_utilities.intercircle
skeinforge_tools.skeinforge_utilities.interpret
os
skeinforge_tools.meta_plugins.polyfile
skeinforge_tools.profile
skeinforge_tools.skeinforge_utilities.settings
sys
skeinforge_tools.skeinforge_utilities.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 the repository constructor.
main()
Display the coil dialog.
writeOutput(fileName='')
Coil a gcode linear move file.

 
Data
        __author__ = 'Enrique Perez (perez_enrique@yahoo.com)'
__date__ = '$Date: 2008/21/04 $'
__license__ = 'GPL 3.0'
absolute_import = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)

 
Author
        Enrique Perez (perez_enrique@yahoo.com)