Module LineFillStrategy
[hide private]
[frames] | no frames]

Module LineFillStrategy

source code


Fills a layer using a line pattern.

Credits:
    Original Author: Enrique Perez (http://skeinforge.com)
    Contributors: Please see the documentation in Skeinforge 
    Modifed as SFACT: Ahmet Cem Turan (github.com/ahmetcemturan/SFACT)    

License: 
    GNU Affero General Public License http://www.gnu.org/licenses/agpl.html

Classes [hide private]
  LineFillStrategy
Functions [hide private]
 
getStrategy(slicedModel)
Returns an instance of the strategy
source code
 
addPathToInfillPaths(infillWidth, infillPaths, path, rotationPlaneAngle)
Add simplified path to fill.
source code
 
addPointOnPath(path, pathIndex, pixelTable, point, pointIndex, width)
Add a point to a path and the pixel table.
source code
 
addPointOnPathIfFree(path, pathIndex, pixelTable, point, pointIndex, width)
Add the closest point to a path, if the point added to a path is free.
source code
 
addSparseEndpoints(doubleExtrusionWidth, endpoints, fillLine, horizontalSegmentLists, infillSolidity, removedEndpoints, solidSurfaceThickness, surroundingXIntersections)
Add sparse endpoints.
source code
 
addSparseEndpointsFromSegment(doubleExtrusionWidth, endpoints, fillLine, horizontalSegmentLists, infillSolidity, removedEndpoints, segment, solidSurfaceThickness, surroundingXIntersections)
Add sparse endpoints from a segment.
source code
 
createExtraFillLoops(nestedRing, radius, shouldExtraLoopsBeAdded)
Create extra fill loops.
source code
 
createFillForSurroundings(nestedRings, radius, shouldExtraLoopsBeAdded)
Create extra fill loops for surrounding loops.
source code
 
getAdditionalLength(path, point, pointIndex)
Get the additional length added by inserting a point into a path.
source code
 
getExtraFillLoops(loops, radius)
Get extra loops between inside and outside loops.
source code
 
getLowerLeftCorner(nestedRings)
Get the lower left corner from the nestedRings.
source code
 
getWithLeastLength(path, point)
Insert a point into a path, at the index at which the path would be shortest.
source code
 
isAddedPointOnPathFree(path, pixelTable, point, pointIndex, width)
Determine if the point added to a path is intersecting the pixel table or the path.
source code
 
isAddedPointOnPathIntersectingPath(begin, path, point, pointIndex)
Determine if the point added to a path is intersecting the path by checking line intersection.
source code
 
isPointAddedAroundClosest(pixelTable, layerExtrusionWidth, paths, removedEndpointPoint, width)
Add the closest removed endpoint to the path, with minimal twisting.
source code
 
isSegmentAround(aroundSegments, segment)
Determine if there is another segment around.
source code
 
isSegmentCompletelyInAnIntersection(segment, xIntersections)
Add sparse endpoints from a segment.
source code
 
isSegmentInX(segment, xFirst, xSecond)
Determine if the segment overlaps within x.
source code
 
isSharpCorner(beginComplex, centerComplex, endComplex)
Determine if the three complex points form a sharp corner.
source code
 
isSidePointAdded(pixelTable, closestPath, closestPathIndex, closestPointIndex, layerExtrusionWidth, removedEndpointPoint, width)
Add side point along with the closest removed endpoint to the path, with minimal twisting.
source code
 
removeEndpoints(pixelTable, layerExtrusionWidth, paths, removedEndpoints, aroundWidth)
Remove endpoints which are added to the path.
source code
Variables [hide private]
  __package__ = None
Function Details [hide private]

getExtraFillLoops(loops, radius)

source code 

Get extra loops between inside and outside loops. Extra perimeters