skeinforge_tools.craft_plugins.jitter ($Date: 2008/21/04 $)
index
/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/craft_plugins/jitter.py

Jitter is a script to jitter the ends of the loops of a gcode file.

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

Jitter jitters the loop end position to a different place on each layer to prevent the a ridge from forming. The "Jitter Over Extrusion Width (ratio)" is the amount the loop ends will be jittered over the extrusion width. A high value means the loops will start all over the place and a low value means loops will start at roughly the same place on each layer.

The following examples jitter the file Screw Holder Bottom.stl. The examples are run in a terminal in the folder which contains Screw Holder Bottom.stl and jitter.py.


> python jitter.py
This brings up the jitter dialog.


> python jitter.py Screw Holder Bottom.stl
The jitter tool is parsing the file:
Screw Holder Bottom.stl
..
The jitter tool has created the file:
.. Screw Holder Bottom_jitter.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 jitter
>>> jitter.main()
This brings up the jitter dialog.


>>> jitter.writeOutput()
The jitter tool is parsing the file:
Screw Holder Bottom.stl
..
The jitter tool has created the file:
.. Screw Holder Bottom_jitter.gcode

 
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
math
skeinforge_tools.meta_plugins.polyfile
skeinforge_tools.skeinforge_utilities.preferences
sys

 
Classes
       
JitterRepository
JitterSkein

 
class JitterRepository
    A class to handle the jitter preferences.
 
  Methods defined here:
__init__(self)
Set the default preferences, execute title & preferences fileName.
execute(self)
Jitter button has been clicked.

 
class JitterSkein
    A class to jitter a skein of extrusions.
 
  Methods defined here:
__init__(self)
addGcodeFromThreadZ(self, thread, z)
Add a gcode thread to the output.
addGcodeMovementZ(self, feedRateMinute, point, z)
Add a movement to the output.
addGcodePathZ(self, feedRateMinute, path, z)
Add a gcode path, without modifying the extruder, to the output.
addTailoredLoopPath(self)
Add a clipped and jittered loop path.
getCraftedGcode(self, jitterRepository, gcodeText)
Parse gcode text and store the jitter gcode.
getJitteredLoop(self, jitterDistance, jitterLoop)
Get a jittered loop path.
getLinearMove(self, line, splitLine)
Add to loop path if this is a loop or path.
isNextExtruderOn(self)
Determine if there is an extruder on command before a move command.
parseAddJitter(self, line)
Parse a gcode line, jitter it and add it to the jitter skein.
parseInitialization(self, jitterRepository)
Parse gcode initialization and store the parameters.

 
Functions
       
getCraftedText(fileName, text, jitterRepository=None)
Jitter a gcode linear move text.
getCraftedTextFromText(gcodeText, jitterRepository=None)
Jitter a gcode linear move text.
getRepositoryConstructor()
Get the repository constructor.
isLoopNumberEqual(betweenX, betweenXIndex, loopNumber)
Determine if the loop number is equal.
main()
Display the jitter dialog.
writeOutput(fileName='')
Jitter 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)