skeinforge_tools.clip ($Date: 2008/21/04 $) | index /home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/clip.py |
Clip is a script to clip loop ends.
The default 'Activate Clip' checkbox is on. When it is on, the functions described below will work, when it is off, the functions
will not be called.
Clip clips the ends of loops to prevent bumps from forming. The "Clip Over Extrusion Width (ratio)" is the ratio of the amount
the loops are clipped over the extrusion width. If the ratio is too high loops will have a gap, if the ratio is too low there will be
a bulge at the loop ends. To run clip, in a shell type:
> python clip.py
The following examples clip the files Hollow Square.gcode & Hollow Square.gts. The examples are run in a terminal in the
folder which contains Hollow Square.gcode, Hollow Square.gts and clip.py. The clip function will clip if 'Activate Clip' is true,
which can be set in the dialog or by changing the preferences file 'clip.csv' in the '.skeinforge' folder in your home directory
with a text editor or a spreadsheet program set to separate tabs. The functions writeOutput and getClipChainGcode check
to see if the text has been clipped, if not they call getCombChainGcode in comb.py to comb the text; once they have the
combed text, then they clip.
> python clip.py
This brings up the dialog, after clicking 'Clip', the following is printed:
File Hollow Square.gts is being chain clipped.
The clipped file is saved as Hollow Square_clip.gcode
> python clip.py Hollow Square.gts
File Hollow Square.gts is being chain clipped.
The clipped file is saved as Hollow Square_clip.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 clip
>>> clip.main()
This brings up the clip dialog.
>>> clip.writeOutput()
Hollow Square.gts
File Hollow Square.gts is being chain clipped.
The clipped file is saved as Hollow Square_clip.gcode
>>> clip.getClipGcode("
( GCode generated by May 8, 2008 slice.py )
( Extruder Initialization )
..
many lines of gcode
..
")
>>> clip.getClipChainGcode("
( GCode generated by May 8, 2008 slice.py )
( Extruder Initialization )
..
many lines of gcode
..
")
Classes | ||||||||||||||||||
|
Functions | ||
|
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) |