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

Fill is a script to fill the slices of a gcode file.
 
The following examples fill the files Hollow Square.gcode & Hollow Square.gts.  The examples are run in a terminal in the folder which contains
Hollow Square.gcode, Hollow Square.gts and fill.py.
 
 
> python fill.py
This brings up the dialog, after clicking 'Fill', the following is printed:
File Hollow Square.gts is being chain filled.
The filled file is saved as Hollow Square_fill.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 fill
>>> fill.main()
File Hollow Square.gts is being filled.
The filled file is saved as Hollow Square_fill.gcode
It took 3 seconds to fill the file.
 
 
>>> fill.writeOutput()
File Hollow Square.gts is being filled.
The filled file is saved as Hollow Square_fill.gcode
It took 3 seconds to fill the file.

 
Modules
       
__init__
skeinforge_tools.analyze
cStringIO
skeinforge_tools.skeinforge_utilities.euclidean
skeinforge_tools.skeinforge_utilities.gcodec
skeinforge_tools.import_translator
skeinforge_tools.skeinforge_utilities.intercircle
math
skeinforge_tools.polyfile
skeinforge_tools.skeinforge_utilities.preferences
skeinforge_tools.slice_shape
sys
time

 
Classes
       
FillPreferences
FillSkein
RotatedLayer
StretchedXSegment

 
class FillPreferences
    A class to handle the fill preferences.
 
  Methods defined here:
__init__(self)
Set the default preferences, execute title & preferences filename.
execute(self)
Fill button has been clicked.

 
class FillSkein
    A class to fill a skein of extrusions.
 
  Methods defined here:
__init__(self)
addFill(self, layerIndex)
Add fill to the slice layer.
addGcodeFromThread(self, thread)
Add a gcode thread to the output.
addGcodeMovement(self, point)
Add a movement to the output.
addLine(self, line)
Add a line of text and a newline to the output.
addRotatedSlice(self, layerIndex, reverseRotationAroundZAngle, surroundingSlices)
Add a rotated slice to the surrounding slices.
addShutdownToOutput(self)
Add shutdown gcode to the output.
addToThread(self, location)
Add a location to thread.
getLayerRoundZ(self, layerIndex)
Get the plane angle around z that the layer is rotated by.
getRotatedLayer(self)
Get the rotated layer, making a new one if necessary.
getRounded(self, number)
Get number rounded to the number of carried decimal places as a string.
linearMove(self, splitLine)
Add a linear move to the thread.
parseGcode(self, fillPreferences, gcodeText)
Parse gcode text and store the bevel gcode.
parseInitialization(self)
Parse gcode initialization and store the parameters.
parseLine(self, lineIndex)
Parse a gcode line and add it to the fill skein.

 
class RotatedLayer
    A rotated layer.
 
  Methods defined here:
__init__(self)
__repr__(self)
Get the string representation of this RotatedLayer.

 
class StretchedXSegment
    A stretched x segment.
 
  Methods defined here:
__repr__(self)
Get the string representation of this StretchedXSegment.
getFromXYStretch(self, firstX, y, secondX, stretch)
Initialize from x, y, and stretch.

 
Functions
       
addAroundClosest(arounds, layerExtrusionWidth, paths, removedEndpoint)
Add the closest removed endpoint to the path, with minimal twisting.
addPath(extrusionWidth, fill, path, rotationPlaneAngle)
Add simplified path to fill.
addSparseEndpoints(doubleExtrusionWidth, endpoints, fillLine, horizontalSegments, infillDensity, removedEndpoints, surroundingXIntersections)
Add sparse endpoints.
addSparseEndpointsFromSegment(doubleExtrusionWidth, endpoints, fillLine, horizontalSegments, infillDensity, removedEndpoints, segment, surroundingXIntersections)
Add sparse endpoints from a segment.
createExtraFillLoops(surroundingLoop)
Create extra fill loops.
createFillForSurroundings(surroundingLoops)
Create extra fill loops for surrounding loops.
getExtraFillLoops(insideLoops, outsideLoop, radius)
Get extra loops between inside and outside loops.
getFillChainGcode(filename, gcodeText, fillPreferences=None)
Fill the slices of a gcode text.  Chain fill the gcode if it is not already sliced.
getFillGcode(gcodeText, fillPreferences=None)
Fill the slices of a gcode text.
getHalfSimplifiedPath(path, radius, remainder)
Get the path with half of the points inside the channel removed.
getHorizontalSegments(fillLoops, alreadyFilledArounds, y)
Get horizontal segments inside loops.
getSimplifiedPath(path, radius)
Get path with points inside the channel removed.
getSurroundingXIntersections(alreadyFilledSize, doubleSolidSurfaceThickness, surroundingSlices, y)
Get x intersections from surrounding layers.
getWithLeastLength(path, point)
Insert a point into a path, at the index at which the path would be shortest.
isIntersectingLoopsPaths(loops, paths, pointBegin, pointEnd)
Determine if the segment between the first and second point is intersecting the loop list.
isPathAlwaysInsideLoop(loop, path)
Determine if all points of a path are inside another loop.
isPathAlwaysOutsideLoops(loops, path)
Determine if all points in a path are outside another loop in a list.
isPerimeterPathInSurroundLoops(surroundingLoops)
Determine if there is a perimeter path in the surrounding loops.
isSegmentAround(aroundSegments, segment)
Determine if there is another segment around.
isSegmentInX(segment, xFirst, xSecond)
Determine if the segment overlaps within x.
main(hashtable=None)
Display the fill dialog.
writeOutput(filename='')
Fill the slices of a gcode file.  Chain slice the file if it is a GNU TriangulatedSurface file.  If no filename is specified, fill the first unmodified gcode file in this folder.

 
Data
        __author__ = 'Enrique Perez (perez_enrique@yahoo.com)'
__date__ = '$Date: 2008/28/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)