skeinforge_tools.craft_plugins.widen ($Date: 2008/28/04 $)
index
/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/craft_plugins/widen.py

Previous / Next / Contents


Widen will widen the outside perimeters away from the inside perimeters, so that the outsides will be at least two perimeter widths away from the insides and therefore the outside filaments will not overlap the inside filaments.

For example, if a mug has a very thin wall, widen would widen the outside of the mug so that the wall of the mug would be two perimeter widths wide, and the outside wall filament would not overlap the inside filament.

For another example, if the outside of the object runs right next to a hole, widen would widen the wall around the hole so that the wall would bulge out around the hole, and the outside filament would not overlap the hole filament.

The widen manual page is at:
http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Widen


Operation
Examples

Operation


The default 'Activate Widen' checkbox is off. When it is on, widen will work, when it is off, widen will not be called.

Examples


The following examples widen the file Screw Holder Bottom.stl. The examples are run in a terminal in the folder which contains Screw Holder Bottom.stl and widen.py.

> python widen.py
This brings up the widen dialog.


> python widen.py Screw Holder Bottom.stl
The widen tool is parsing the file:
Screw Holder Bottom.stl
..
The widen tool has created the file:
.. Screw Holder Bottom_widen.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 widen
>>> widen.main()
This brings up the widen dialog.


>>> widen.writeOutput( 'Screw Holder Bottom.stl' )
The widen tool is parsing the file:
Screw Holder Bottom.stl
..
The widen tool has created the file:
.. Screw Holder Bottom_widen.gcode


Previous / Next / Contents


 
Modules
       
__init__
skeinforge_tools.skeinforge_utilities.consecution
skeinforge_tools.skeinforge_utilities.euclidean
skeinforge_tools.skeinforge_utilities.gcodec
skeinforge_tools.skeinforge_utilities.intercircle
skeinforge_tools.skeinforge_utilities.interpret
os
skeinforge_tools.meta_plugins.polyfile
skeinforge_tools.profile
skeinforge_tools.skeinforge_utilities.settings
sys
skeinforge_tools.skeinforge_utilities.triangle_mesh

 
Classes
       
WidenRepository
WidenSkein

 
class WidenRepository
    A class to handle the widen settings.
 
  Methods defined here:
__init__(self)
Set the default settings, execute title & settings fileName.
execute(self)
Widen button has been clicked.

 
class WidenSkein
    A class to widen a skein of extrusions.
 
  Methods defined here:
__init__(self)
addWiden(self, rotatedBoundaryLayer)
Add widen to the layer.
getCraftedGcode(self, gcodeText, repository)
Parse gcode text and store the widen gcode.
parseInitialization(self)
Parse gcode initialization and store the parameters.
parseLine(self, line)
Parse a gcode line and add it to the widen skein.

 
Functions
       
addToPaths(paths, radius, segment)
Add the segment to the paths.
connectEndPath(endIndex, paths, radius)
Connect the end path.
getCraftedText(fileName, text='', repository=None)
Widen the preface file or text.
getCraftedTextFromText(gcodeText, repository=None)
Widen the preface gcode text.
getIntersectingWithinLoops(loop, loopList, outsetLoop)
Get the loops which are intersecting or which it is within.
getIsIntersectingWithinLoop(loop, otherLoop, outsetLoop)
Determine if the loop is intersecting or is within the other loop.
getNewRepository()
Get the repository constructor.
getSegmentsFromPoints(loops, pointBegin, pointEnd)
Get endpoint segments from the beginning and end of a line segment.
getWidenedLoop(loop, loopList, outsetLoop, radius, tinyRadius)
Get the widened loop.
main()
Display the widen dialog.
writeOutput(fileName='')
Widen the carving of a gcode file.

 
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)