skeinforge_tools.craft_plugins.cool ($Date: 2008/21/04 $) | index /home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/craft_plugins/cool.py |
Cool is a script to cool the shape.
Allan Ecker aka The Masked Retriever's has written the following quicktip for cool.
"Skeinforge Quicktip: Cool" at: http://blog.thingiverse.com/2009/07/28/skeinforge-quicktip-cool/
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. The orbits will be around the
largest island on that layer. If the area of the largest island is as large as the square of the "Minimum Orbital Radius" then the
orbits will be just within the island. If the island is smaller, then the orbits will be in a square of the "Minimum Orbital Radius"
around the center of the island.
Before the orbits, if there is a file cool_start.txt, cool will add that to the start of the orbits. After it has added the orbits, it will
add the file cool_end.txt if it exists. Cool does not care if the text file names are capitalized, but some file systems do not
handle file name cases properly, so to be on the safe side you should give them lower case names. Raft looks for those files
in the alterations folder in the .skeinforge folder in the home directory. If it doesn't find the file it then looks in the alterations
folder in the skeinforge_tools folder. If it doesn't find anything there it looks in the skeinforge_tools folder. The cool start and
end text idea is from:
http://makerhahn.blogspot.com/2008/10/yay-minimug.html
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 Screw Holder Bottom.gcode & Screw Holder Bottom.stl. The examples are run in a terminal in the
folder which contains Screw Holder Bottom.gcode, Screw Holder Bottom.stl and cool.py. The cool function will cool if the 'Activate Cool'
checkbox is on. The functions writeOutput and getChainGcode check to see if the text has been cooled, if not they
call the getChainGcode in clip.py to clip the text; once they have the clipped text, then they cool.
> python cool.py
This brings up the dialog, after clicking 'Cool', the following is printed:
File Screw Holder Bottom.stl is being chain cooled.
The extrusion fill density ratio is 0.853
The cooled file is saved as Screw Holder Bottom.gcode
The scalable vector graphics file is saved as Hollow_Square_cool.svg
It took 34 seconds to cool the file.
> python cool.py Screw Holder Bottom.stl
File Screw Holder Bottom.stl is being chain cooled.
The extrusion fill density ratio is 0.853
The cooled file is saved as Screw Holder Bottom.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 Screw Holder Bottom.stl is being chain cooled.
The extrusion fill density ratio is 0.853
The cooled file is saved as Screw Holder Bottom.gcode
The scalable vector graphics file is saved as Hollow_Square_cool.svg
It took 34 seconds to cool the file.
>>> cool.getGcode("
( GCode generated by May 8, 2008 carve.py )
( Extruder Initialization )
..
many lines of gcode
..
")
>>> cool.getChainGcode("
( GCode generated by May 8, 2008 carve.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) |