diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-08-13 16:59:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-13 16:59:12 +0200 |
| commit | e8896fe18e3f052f6ae4c7a7a62ac3f40ec7c091 (patch) | |
| tree | 51e09166eaff66df69d85f673d8f74ea93da21f1 /templates/remove_duplicated_points.xml | |
| parent | c923dbb0e2586ec451c6ebfd01903bc35ab10e0a (diff) | |
add remove duplicated points extension (#3117)
Diffstat (limited to 'templates/remove_duplicated_points.xml')
| -rw-r--r-- | templates/remove_duplicated_points.xml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/templates/remove_duplicated_points.xml b/templates/remove_duplicated_points.xml new file mode 100644 index 00000000..6c85f8b2 --- /dev/null +++ b/templates/remove_duplicated_points.xml @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="UTF-8"?> +<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Remove duplicated points</name> + <id>org.{{ id_inkstitch }}.remove_duplicated_points</id> + <param name="extension" type="string" gui-hidden="true">remove_duplicated_points</param> + + <param name="notebook" type="notebook"> + <page name="options" gui-text="Options"> + <param name="num_points" type="int" min="1" max="5000" + gui-text="Remove point if repeated within this number of consecutive points">10</param> + <param name="distance" type="float" precision="2" min="0" max="500" + gui-text="Distance tolerance">0.01</param> + </page> + <page name="info" gui-text="Help"> + <label> + This extension removes duplicated points from selected elements. + </label> + <spacer /> + <label> + It is most useful for manual paths (straight lines), since it will increase node count on Bézier curves. + One possible usecase is to convert a bean stitch path from an embroidery file back into a simple line. + </label> + <spacer /> + <label>More information on our website</label> + <label appearance="url">https://inkstitch.org/docs/edit/#remove-duplicated-points</label> + </page> + </param> + + <effect> + <object-type>all</object-type> + <effects-menu> + <submenu name="{{ menu_inkstitch }}" translatable="no"> + <submenu name="Edit" /> + </submenu> + </effects-menu> + </effect> + <script> + {{ command_tag | safe }} + </script> +</inkscape-extension> |
