skeinforge_application.skeinforge_plugins.craft_plugins.mill ($Date: 2008/21/04 $) | index /home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/skeinforge_application/skeinforge_plugins/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 edge 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 edge 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 edge 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

Previous / Next / Contents

Modules
`` |  |
__init__ fabmetheus_utilities.archive fabmetheus_utilities.euclidean fabmetheus_utilities.fabmetheus_tools.fabmetheus_interpret | fabmetheus_utilities.gcodec fabmetheus_utilities.intercircle math os | fabmetheus_utilities.settings skeinforge_application.skeinforge_utilities.skeinforge_craft skeinforge_application.skeinforge_utilities.skeinforge_polyfile skeinforge_application.skeinforge_utilities.skeinforge_profile | sys fabmetheus_utilities.geometry.solids.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 threads 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 new repository.` 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, shouldAnalyze=True) `Mill a gcode linear move file.`

Data
`` |  | __author__ = 'Enrique Perez (perez_enrique@yahoo.com)' __date__ = '$Date: 2008/21/04 $' __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' absolute_import = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)

Author
`` |  | Enrique Perez (perez_enrique@yahoo.com)