skeinforge_tools.cool ($Date: 2008/21/04 $) | index /home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/cool.py |
Cool is a script to cool the shape.
The default 'Activate Cool' checkbox is on. When it is on, the functions described below will work, when it is off, the functions
will not be called.
The important value for the cool preferences is "Minimum Layer Time (seconds)" which is the minimum amount of time the
extruder will spend on a layer. If it takes less time to extrude the layer than the minimum layer time, cool adds orbits with the
extruder off to give the layer time to cool, so that the next layer is not extruded on a molten base.
If the 'Turn Fan On at Beginning' preference is true, cool will turn the fan on at the beginning of the fabrication. If the
'Turn Fan Off at Ending' preference is true, cool will turn the fan off at the ending of the fabrication.
To run cool, in a shell which cool is in type:
> python cool.py
The following examples cool 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 cool.py. The cool function will cool if the 'Activate Cool'
checkbox is on. The functions writeOutput and getCoolChainGcode check to see if the text has been cooled, if not they
call the getRaftChainGcode in raft.py to raft the text; once they have the rafted text, then they cool.
> python cool.py
This brings up the dialog, after clicking 'Cool', the following is printed:
File Hollow Square.gts is being chain cooled.
The extrusion fill density ratio is 0.853
The cooled file is saved as Hollow Square.gcode
The scalable vector graphics file is saved as Hollow_Square_cool.svg
It took 34 seconds to cool the file.
> python cool.py Hollow Square.gts
File Hollow Square.gts is being chain cooled.
The extrusion fill density ratio is 0.853
The cooled file is saved as Hollow Square.gcode
The scalable vector graphics file is saved as Hollow_Square_cool.svg
It took 34 seconds to cool the file.
> 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 cool
>>> cool.main()
This brings up the cool dialog.
>>> cool.writeOutput()
File Hollow Square.gts is being chain cooled.
The extrusion fill density ratio is 0.853
The cooled file is saved as Hollow Square.gcode
The scalable vector graphics file is saved as Hollow_Square_cool.svg
It took 34 seconds to cool the file.
>>> cool.getCoolGcode("
( GCode generated by May 8, 2008 slice.py )
( Extruder Initialization )
..
many lines of gcode
..
")
>>> cool.getCoolChainGcode("
( 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) |