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

Previous / Next / Contents


Mill is a script to mill the outlines.


Operation
Settings
  Add Loops
    Add Inner Loops
    Add Outer Loops
  Cross Hatch
  Loop Outset
    Loop Inner Outset over Perimeter Width
    Loop Outer Outset over Perimeter Width
  Mill Width over Perimeter Width
Examples

Operation


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

Settings


Add Loops

Add Inner Loops

Default is on.

When selected, the inner milling loops will be added.

Add Outer Loops

Default is on.

When selected, the outer milling loops will be added.

Cross Hatch

Default is on.

When selected, there will be alternating horizontal and vertical milling paths, if it is off there will only be horizontal milling paths.

Loop Outset

Loop Inner Outset over Perimeter Width

Default is 0.5.

Defines the ratio of the amount the inner milling loop will be outset over the perimeter width.

Loop Outer Outset over Perimeter Width

Default is one.

Defines the ratio of the amount the outer milling loop will be outset over the perimeter width. The 'Loop Outer Outset over Perimeter Width' ratio should be greater than the 'Loop Inner Outset over Perimeter Width' ratio.

Mill Width over Perimeter Width

Default is one.

Defines the ratio of the mill line width over the perimeter width. If the ratio is one, all the material will be milled. The greater the 'Mill Width over Perimeter Width' the farther apart the mill lines will be and so less of the material will be directly milled, the remaining material might still be removed in chips if the ratio is not much greater than one.

Examples


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


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


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


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

 
Classes
       
Average
MillRepository
MillSkein

 
class Average
    A class to hold values and get the average.
 
  Methods defined here:
__init__(self)
addValue(self, value)
Add a value to the total and the number of values.
getAverage(self)
Get the average.
reset(self)
Set the number of values and the total to the default.

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

 
class MillSkein
    A class to mill a skein of extrusions.
 
  Methods defined here:
__init__(self)
addGcodeFromLoops(self, loops, z)
Add gcode from loops.
addGcodeFromThreadZ(self, thread, z)
Add a thread to the output.
addMillThreads(self)
Add the mill htreads to the skein.
addSegmentTableLoops(self, boundaryLayerIndex)
Add the segment tables and loops to the boundary.
getCraftedGcode(self, gcodeText, repository)
Parse gcode text and store the mill gcode.
getHorizontalSegmentTableForXIntersectionsTable(self, xIntersectionsTable)
Get the horizontal segment table from the xIntersectionsTable.
getHorizontalXIntersectionsTable(self, loops)
Get the horizontal x intersections table from the loops.
getVerticalSegmentTableForXIntersectionsTable(self, xIntersectionsTable)
Get the vertical segment table from the xIntersectionsTable which has the x and y swapped.
parseBoundaries(self)
Parse the boundaries and add them to the boundary layers.
parseInitialization(self)
Parse gcode initialization and store the parameters.
parseLine(self, line)
Parse a gcode line and add it to the mill skein.

 
Functions
       
getCraftedText(fileName, gcodeText='', repository=None)
Mill the file or gcodeText.
getCraftedTextFromText(gcodeText, repository=None)
Mill a gcode linear move gcodeText.
getNewRepository()
Get the repository constructor.
getPointsFromSegmentTable(segmentTable)
Get the points from the segment table.
isPointOfTableInLoop(loop, pointTable)
Determine if a point in the point table is in the loop.
main()
Display the mill dialog.
writeOutput(fileName='')
Mill 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)