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

Previous / Next / Contents


Comb is a script to comb the extrusion hair of a gcode file.

The comb manual page is at:
http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Comb

Comb bends the extruder travel paths around holes in the slices, to avoid stringers. It moves the extruder to the inside of perimeters before turning the extruder on so any start up ooze will be inside the shape.


Operation
Settings
  Minimum Departure Distance over Perimeter Width
  Running Jump Space over Perimeter Width
Examples

Operation


The default 'Activate Comb' 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 Departure Distance over Perimeter Width

Default is zero.

Defines the ratio of the minimum distance that the extruder will travel and loop before leaving a perimeter. A high value means the extruder will loop many times before leaving, so that the ooze will finish within the perimeter, a low value means the extruder will not loop and the stringers will be thicker. Since it sometimes loops when there's no need, the default is zero.

Running Jump Space over Perimeter Width

Default is zero.

Defines the ratio of the running jump space that is added before going from one island to another to the perimeter width. The default is zero because sometimes an unnecessary running jump space is added, if you want to use it a reasonable value is five. For an extruder with acceleration code, an extra space before leaving the island means that it will be going at high speed as it exits the island, which means the stringer across the islands will be thinner. If the extruder does not have acceleration code, the speed will not be greater so there would be no benefit and 'Running Jump Space over Perimeter Width' should be left at zero.

Examples



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


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


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


>>> comb.writeOutput( 'Screw Holder Bottom.stl' )
The comb tool is parsing the file:
Screw Holder Bottom.stl
..
The comb tool has created the file:
.. Screw Holder Bottom_comb.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
skeinforge_tools.meta_plugins.polyfile
skeinforge_tools.profile
skeinforge_tools.skeinforge_utilities.settings
sys

 
Classes
       
CombRepository
CombSkein

 
class CombRepository
    A class to handle the comb settings.
 
  Methods defined here:
__init__(self)
Set the default settings, execute title & settings fileName.
execute(self)
Comb button has been clicked.

 
class CombSkein
    A class to comb a skein of extrusions.
 
  Methods defined here:
__init__(self)
addGcodePathZ(self, feedRateMinute, path, z)
Add a gcode path, without modifying the extruder, to the output.
addIfTravel(self, splitLine)
Add travel move around loops if the extruder is off.
addRunningJumpPath(self, end, loop, pathAround)
Get the running jump path from the perimeter to the intersection or running jump space.
addToLoop(self, location)
Add a location to loop.
getBetweens(self)
Set betweens for the layer.
getBoundaries(self)
Get boundaries for the layer.
getCraftedGcode(self, combRepository, gcodeText)
Parse gcode text and store the comb gcode.
getIsAsFarAndNotIntersecting(self, begin, end)
Determine if the point on the line is at least as far from the loop as the center point.
getIsRunningJumpPathAdded(self, betweens, end, lastPoint, nearestEndMinusLastSegment, pathAround, penultimatePoint, runningJumpSpace)
Add a running jump path if possible, and return if it was added.
getPathBetween(self, betweenFirst, betweenSecond, isLeavingPerimeter, loopFirst)
Add a path between the perimeter and the fill.
getPathsBetween(self, begin, end)
Insert paths between the perimeter and the fill.
getSimplifiedAroundPath(self, begin, end, loop, pathAround)
Get the simplified path between the perimeter and the fill.
getSimplifiedBeginPath(self, begin, loop, pathAround)
Get the simplified begin path between the perimeter and the fill.
getSimplifiedEndPath(self, end, loop, pathAround)
Get the simplified end path between the perimeter and the fill.
parseBoundariesLayers(self, combRepository, line)
Parse a gcode line.
parseInitialization(self, combRepository)
Parse gcode initialization and store the parameters.
parseLine(self, line)
Parse a gcode line and add it to the comb skein.

 
Functions
       
getCraftedText(fileName, text, combRepository=None)
Comb a gcode linear move text.
getCraftedTextFromText(gcodeText, combRepository=None)
Comb a gcode linear move text.
getNewRepository()
Get the repository constructor.
main()
Display the comb dialog.
writeOutput(fileName='')
Comb 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)