diff options
Diffstat (limited to 'share/extensions/gcodetools_lathe.inx')
| -rw-r--r-- | share/extensions/gcodetools_lathe.inx | 52 |
1 files changed, 36 insertions, 16 deletions
diff --git a/share/extensions/gcodetools_lathe.inx b/share/extensions/gcodetools_lathe.inx index 933073649..a45896f3e 100644 --- a/share/extensions/gcodetools_lathe.inx +++ b/share/extensions/gcodetools_lathe.inx @@ -1,7 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> + <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> - <_name>Lathe</_name> - <id>ru.cnc-club.filter.gcodetools_lathe_ptg</id> + <name>Lathe</name> + <id>ru.cnc-club.filter.gcodetools_lathe_lathe_modify_path_ptg</id> <dependency type="executable" location="extensions">gcodetools.py</dependency> <dependency type="executable" location="extensions">inkex.py</dependency> <param name='active-tab' type="notebook"> @@ -11,21 +12,37 @@ <param name="lathe-fine-cut-width" type="float" precision="5" min="0" max="1000" _gui-text="Fine cut width:">1</param> <param name="lathe-fine-cut-count" type="int" min="0" max="1000" _gui-text="Fine cut count:">1</param> <param name="lathe-create-fine-cut-using" _gui-text="Create fine cut using:" type="optiongroup" appearance="minimal"> - <option value="Move path">Move path</option> - <option value="Offset path">Offset path</option> + <_option value="Move path">Move path</_option> + <_option value="Offset path">Offset path</_option> </param> <param name="lathe-x-axis-remap" type="string" _gui-text="Lathe X axis remap:">X</param> <param name="lathe-z-axis-remap" type="string" _gui-text="Lathe Z axis remap:">Z</param> + </page> - + <page name='lathe_modify_path' _gui-text='Lathe modify path'> + <_param name="help" type="description"> + This function modifies path so it will be able to be cut with the rectangular cutter. + </_param> + <param name="lathe-rectangular-cutter-width" type="float" precision="5" min="0" max="1000" _gui-text="Lathe width:">4</param> </page> + <page name='path-to-gcode' _gui-text='Path to Gcode'> <param name="biarc-tolerance" type='float' precision="5" _gui-text='Biarc interpolation tolerance:'>1</param> <param name="biarc-max-split-depth" type="int" _gui-text="Maximum splitting depth:">4</param> + <param name="path-to-gcode-order" _gui-text="Cutting order" type="optiongroup" appearance="minimal"> + <_option value="subpath by subpath">Subpath by subpath</_option> + <_option value="path by path">Path by path</_option> + <_option value="pass by pass">Pass by Pass</_option> + </param> + + <param name="path-to-gcode-depth-function" type="string" _gui-text="Depth function:">d</param> + <param name="path-to-gcode-sort-paths" type="boolean" _gui-text="Sort paths to reduse rapid distance">True</param> + <_param name="help" type="description"> Biarc interpolation tolerance is the maximum distance between path and its approximation. -The segment will be split into two segments if the distance between path's segment and it's approximation exceeds biarc interpolation tolerance. +The segment will be split into two segments if the distance between path's segment and its approximation exceeds biarc interpolation tolerance. +For depth function c=color intensity from 0.0 (white) to 1.0 (black), d is the depth defined by orientation points, s - surface defined by orientation points. </_param> </page> @@ -34,24 +51,28 @@ The segment will be split into two segments if the distance between path's segme <param name="Zoffset" type="float" precision="5" min="-100000" max="100000" _gui-text="Offset along Z axis:">0.0</param> <param name="auto_select_paths" type="boolean" _gui-text="Select all paths if nothing is selected">true</param> <param name="min-arc-radius" type="float" precision="5" min="-1000" max="1000" _gui-text="Minimum arc radius:">0.05</param> + <param name="comment-gcode" type="string" _gui-text="Comment Gcode:"></param> + <param name="comment-gcode-from-properties" type="boolean" _gui-text="Get additional comments from object's properties">False</param> + </page> <page name='preferences' _gui-text='Preferences'> - <param name="filename" type="string" _gui-text="File">output.ngc</param> + <param name="filename" type="string" _gui-text="File:">output.ngc</param> <param name="add-numeric-suffix-to-filename" type="boolean" _gui-text="Add numeric suffix to filename">true</param> <param name="directory" type="string" _gui-text="Directory:">/home</param> <param name="Zsafe" type="float" precision="5" min="-1000" max="1000" _gui-text="Z safe height for G00 move over blank:">5</param> <param name="unit" type="enum" _gui-text="Units (mm or in):"> - <item value="G21 (All units in mm)">mm</item> - <item value="G20 (All units in inches)">in</item> + <_item value="G21 (All units in mm)">mm</_item> + <_item value="G20 (All units in inches)">in</_item> </param> <param name="postprocessor" type="enum" _gui-text="Post-processor:"> - <item value=" ">None</item> - <item value="parameterize();">Parameterize Gcode</item> - <item value="flip(y);parameterize();">Flip y axis and parameterize Gcode</item> - <item value="round(4);">Round all values to 4 digits</item> + <_item value=" ">None</_item> + <_item value="parameterize();">Parameterize Gcode</_item> + <_item value="flip(y);parameterize();">Flip y axis and parameterize Gcode</_item> + <_item value="round(4);">Round all values to 4 digits</_item> + <_item value='regex("G01 Z([0-9\.\-]+).*\(Penetrate\)", lambda match: "G00 Z%f (Fast pre-penetrate)\n%s" %(float(match.group(1))+5, match.group(0)));'>Fast pre-penetrate</_item> </param> <param name="postprocessor-custom" type="string" _gui-text="Additional post-processor:"></param> @@ -73,9 +94,9 @@ English support forum: and Russian support forum: http://www.cnc-club.ru/gcodetoolsru -Credits: Nick Drobchenko, Vladimir Kalyaev, John Brooker, Henry Nicolas. +Credits: Nick Drobchenko, Vladimir Kalyaev, John Brooker, Henry Nicolas, Chris Lusby Taylor. -Gcodetools ver. 1.6.01 +Gcodetools ver. 1.7 </_param> </page> @@ -90,5 +111,4 @@ Gcodetools ver. 1.6.01 <script> <command reldir="extensions" interpreter="python">gcodetools.py</command> </script> - </inkscape-extension> |
