skeinforge_tools.craft_plugins.inset ($Date: 2008/28/04 $) | index /home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/craft_plugins/inset.py |
Inset is a script to inset a gcode file.
Inset insets the outlines of a gcode file. The outside outlines will be inset by the extrusion width, and the inside outlines will be
outset by the extrusion width.
If "Add Custom Code for Temperature Reading" is selected, the M105 custom code for temperature reading will be added at the
beginning of the file, the default is on. If the "Turn Extruder Heater Off at Shut Down" preference is 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, this is the
default choice.
The 'Extrusion Perimeter Width over Thickness' is the ratio of the extrusion perimeter width to the layer thickness. The higher the
value the more the perimeter will be inset, the default is 1.8.
The 'Infill Perimeter Overlap' ratio is the amount the infill overlaps the perimeter over the extrusion width. The higher the value the
more the infill will overlap the perimeter, and the thicker join between the infill and the perimeter. If the value is too high, the join will
be so thick that the nozzle will run plow through the join below making a mess, the default is 0.05. There are two choices for the
infill perimeter overlap method of calculation. If the 'Calculate Overlap from Perimeter and Infill' option is chosen, the overlap will be
calculated from the average of the perimeter width and the infill width, this is the default choice. If the 'Calculate Overlap from
Perimeter Only' option is chosen, the overlap will be calculated from the perimeter width only.
If "Remove Extrusion Overlap" is selected, any extrusion that intersects itself will be removed, the default is on.
The following examples inset the files Screw Holder Bottom.gcode & 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 dialog, after clicking 'Inset', the following is printed:
File Screw Holder Bottom.stl is being chain insetted.
The insetted file is saved as Screw Holder Bottom_inset.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 inset
>>> inset.main()
File Screw Holder Bottom.stl is being insetted.
The insetted file is saved as Screw Holder Bottom_inset.gcode
It took 3 seconds to inset the file.
>>> inset.writeOutput()
File Screw Holder Bottom.stl is being insetted.
The insetted file is saved as Screw Holder Bottom_inset.gcode
It took 3 seconds to inset the file.
Classes | ||||||||||||||||||
|
Functions | ||
|
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) |