skeinforge_application.skeinforge_plugins.craft_plugins.inset ($Date: 2008/02/05 $) | index /home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/skeinforge_application/skeinforge_plugins/craft_plugins/inset.py

Previous / Next / Contents

`
Inset will inset the outside outlines by half the perimeter width, and outset the inside outlines by the same amount.
The inset manual page is at:
http://fabmetheus.crsndoo.com/wiki/index.php/Skeinforge_Inset
Settings
Add Custom Code for Temperature Reading
Infill in Direction of Bridge
Loop Order Choice
Ascending Area
Descending Area
Overlap Removal Width over Perimeter Width
Turn Extruder Heater Off at Shut Down
Examples
`

## Settings

### Add Custom Code for Temperature Reading

Default is on.
When selected, the M105 custom code for temperature reading will be added at the beginning of the file.

### Infill in Direction of Bridge

Default is on.
When selected, the infill will be in the direction of any bridge across a gap, so that the fill will be able to span a bridge easier.

### Loop Order Choice

Default loop order choice is 'Ascending Area'.
When overlap is to be removed, for each loop, the overlap is checked against the list of loops already extruded. If the latest loop overlaps an already extruded loop, the overlap is removed from the latest loop. The loops are ordered according to their areas.

#### Ascending Area

When selected, the loops will be ordered in ascending area. With thin walled parts, if overlap is being removed the outside of the container will not be extruded. Holes will be the correct size.

#### Descending Area

When selected, the loops will be ordered in descending area. With thin walled parts, if overlap is being removed the inside of the container will not be extruded. Holes will be missing the interior wall so they will be slightly wider than model size.

### Overlap Removal Width over Perimeter Width

Default is 0.6.
Defines the ratio of the overlap removal width over the perimeter width. Any part of the extrusion that comes within the overlap removal width of another is removed. This is to prevent the extruder from depositing two extrusions right beside each other. If the 'Overlap Removal Width over Perimeter Width' is less than 0.2, the overlap will not be removed.

### Turn Extruder Heater Off at Shut Down

Default is on.
When selected, the M104 S0 gcode line will be added to the end of the file to turn the extruder heater off by setting the extruder heater temperature to 0.

## Examples

The following examples inset the file Screw Holder Bottom.stl. The examples are run in a terminal in the folder which contains Screw Holder Bottom.stl and inset.py.
> python inset.py
This brings up the inset dialog.
> python inset.py Screw Holder Bottom.stl
The inset tool is parsing the file:
Screw Holder Bottom.stl
..
The inset tool has created the file:
.. Screw Holder Bottom_inset.gcode

Previous / Next / Contents

Modules
`` |  |
__init__ fabmetheus_utilities.archive cmath 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
`` |  | InsetRepository InsetSkein
class InsetRepository
`` | `A class to handle the inset settings.`
| Methods defined here: __init__(self) `Set the default settings, execute title & settings fileName.` execute(self) `Inset button has been clicked.`
class InsetSkein
`` | `A class to inset a skein of extrusions.`
| Methods defined here: __init__(self) `Initialize.` addGcodeFromPerimeterPaths(self, isIntersectingSelf, loop, loopLayer, loopLists, radius) `Add the perimeter paths to the output.` addGcodeFromRemainingLoop(self, loop, loopLayer, loopLists, radius) `Add the remainder of the loop which does not overlap the alreadyFilledArounds loops.` addGcodePerimeterBlockFromRemainingLoop(self, loop, loopLayer, loopLists, radius) `Add the perimter block remainder of the loop which does not overlap the alreadyFilledArounds loops.` addInitializationToOutput(self) `Add initialization gcode to the output.` addInset(self, loopLayer) `Add inset to the layer.` getCraftedGcode(self, gcodeText, repository) `Parse gcode text and store the bevel gcode.` parseInitialization(self) `Parse gcode initialization and store the parameters.` parseLine(self, line) `Parse a gcode line and add it to the inset skein.`

Functions
`` |  | addAlreadyFilledArounds(alreadyFilledArounds, loop, radius) `Add already filled loops around loop to alreadyFilledArounds.` addSegmentOutline(isThick, outlines, pointBegin, pointEnd, width) `Add a diamond or hexagonal outline for a line segment.` getBridgeDirection(belowLoops, layerLoops, radius) `Get span direction for the majority of the overhanging extrusion perimeter, if any.` getCraftedText(fileName, text='', repository=None) `Inset the preface file or text.` getCraftedTextFromText(gcodeText, repository=None) `Inset the preface gcode text.` getDoubledRoundZ(overhangingSegment, segmentRoundZ) `Get doubled plane angle around z of the overhanging segment.` getInteriorSegments(loops, segments) `Get segments inside the loops.` getIsIntersectingWithinList(loop, loopList) `Determine if the loop is intersecting or is within the loop list.` getNewRepository() `Get new repository.` getOverhangDirection(belowOutsetLoops, segmentBegin, segmentEnd) `Add to span direction from the endpoint segments which overhang the layer below.` getSegmentsFromLoopListsPoints(loopLists, pointBegin, pointEnd) `Get endpoint segments from the beginning and end of a line segment.` isCloseToLast(paths, point, radius) `Determine if the point is close to the last point of the last path.` isIntersectingItself(loop, width) `Determine if the loop is intersecting itself.` isIntersectingWithinLists(loop, loopLists) `Determine if the loop is intersecting or is within the loop lists.` main() `Display the inset dialog.` writeOutput(fileName, shouldAnalyze=True) `Inset the carving of a gcode file.`

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