remove deprecation, add icon to contour_scanner_and_trimmer

This commit is contained in:
Mario Voigt 2025-06-02 19:25:15 +02:00
parent 93b0679136
commit 87de1d74e0
3 changed files with 75 additions and 4 deletions

View File

@ -146,7 +146,7 @@ Tips:
<page name="tab_about" gui-text="About">
<label appearance="header">Contour Scanner And Trimmer</label>
<label>A utility to scan, flatten, split and trim lines.</label>
<label>2020 - 2023 / written by Mario Voigt (Stadtfabrikanten e.V. / FabLab Chemnitz)</label>
<label>2020 - 2025 / written by Mario Voigt (Stadtfabrikanten e.V. / FabLab Chemnitz)</label>
<spacer/>
<label appearance="header">Online Documentation</label>
<label appearance="url">https://y.stadtfabrikanten.org/contourscannerandtrimmer</label>
@ -181,6 +181,8 @@ Tips:
<submenu name="Paths - Cut/Intersect/Purge" />
</submenu>
</effects-menu>
<menu-tip>Find open, contours and self-intersecting contours and checks for a set of other attributes.</menu-tip>
<icon>icon.svg</icon>
</effect>
<script>
<command location="inx" interpreter="python">contour_scanner_and_trimmer.py</command>

View File

@ -70,9 +70,6 @@ from inkex.bezier import csplength
from inkex.paths import Path, CubicSuperPath
from shapely.geometry import LineString, Point, MultiPoint
from shapely.ops import snap, split
from shapely import speedups
if speedups.available:
speedups.enable()
idPrefixSubSplit = "subsplit"
idPrefixTrimming = "trimmed"

View File

@ -0,0 +1,72 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="100.0px"
height="100.0px"
viewBox="0 0 100.0 100.0"
version="1.1"
id="svg2051"
inkscape:version="1.4.2 (1:1.4.2+202505120737+ebf0e940d0)"
sodipodi:docname="icon.svg"
xml:space="preserve"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"><sodipodi:namedview
id="namedview2053"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="false"
inkscape:document-units="px"
showgrid="false"
inkscape:showpageshadow="false"
inkscape:snap-tangential="true"
inkscape:snap-perpendicular="true"
inkscape:deskcolor="#ffffff"
inkscape:lockguides="true"
inkscape:zoom="2.8284271"
inkscape:cx="88.741901"
inkscape:cy="48.790368"
inkscape:window-width="1920"
inkscape:window-height="1008"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="g18"
inkscape:export-bgcolor="#ffffffff" /><defs
id="defs2048" /><g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="scale(3.77953, 3.77953)"><g
id="g18"
transform="matrix(0.89999996,0,0,0.89999996,1.3229161,1.3229164)"><path
style="baseline-shift:baseline;display:inline;overflow:visible;opacity:1;vector-effect:none;fill:#e7e7e7;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-linecap:square;enable-background:accumulate;stop-color:#000000;stop-opacity:1"
d="m 10.924907,18.190609 c -0.546453,0.105457 -1.1003064,0.160494 -1.6536443,0.165881 l 1.5058503,5.408969 H -1.4699068 v 1.637108 H 12.933569 Z"
id="path13"
sodipodi:nodetypes="ccccccc" /><path
id="path8"
style="baseline-shift:baseline;display:inline;overflow:visible;opacity:1;vector-effect:none;fill:#00ff00;fill-opacity:1;fill-rule:evenodd;stroke-linecap:square;enable-background:accumulate;stop-color:#000000;stop-opacity:1"
d="M 10.314609,7.1587315 A 3.0401888,3.086961 0 0 1 9.8856951,8.7395126 l 6.4068399,1.7161734 c 0.0985,-0.5508873 0.132774,-1.1108011 0.102836,-1.6681144 z M 8.6232407,9.9249692 a 3.0401888,3.086961 0 0 1 -1.348754,0.3203938 3.0401888,3.086961 0 0 1 -0.2645832,-0.01137 l 0.4273638,1.535306 1.2862256,4.620387 c 0.559107,0.03514 1.1212846,0.0054 1.6748321,-0.08888 l -1.2867423,-4.62039 h 5.167e-4 l -0.2971393,-1.067634 -0.020154,-0.07183 z" /><path
style="baseline-shift:baseline;display:inline;overflow:visible;opacity:1;vector-effect:none;fill:#e7e7e7;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-linecap:square;enable-background:accumulate;stop-color:#000000;stop-opacity:1"
d="M 23.923589,-1.4699072 V 8.808759 l -2.361095,1.363223 -3.20497,-0.8588614 c -0.008,0.5522536 -0.06542,1.1044774 -0.173116,1.6495104 l 3.608563,0.966866 3.767726,-2.1755767 V -1.4699072 Z"
id="path9"
sodipodi:nodetypes="ccccccccc" /><path
id="path2"
style="vector-effect:non-scaling-stroke;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.214721;stroke-linecap:square;-inkscape-stroke:hairline"
d="m 2.6885615,2.6868278 c 3.5847489,-3.58474928 9.3967755,-3.58474928 12.9815245,0 3.305316,3.3052964 3.598916,8.5665612 0.681875,12.2190902 l 1.44431,-10e-7 6.968362,6.968363 -1.14509,1.14509 -0.598439,0.598439 -1.14509,1.14509 -6.968362,-6.968362 v -1.444309 c -3.65253,2.917041 -8.9137943,2.62344 -12.2190905,-0.681876 -3.58474908,-3.584749 -3.58474908,-9.3967753 0,-12.9815242 z m 1.381013,1.3810131 c -2.8220368,2.8220364 -2.8220368,7.3974621 0,10.2194981 2.8220364,2.822037 7.3974625,2.822037 10.2194985,0 2.822037,-2.822036 2.822037,-7.3974617 0,-10.2194981 -2.822036,-2.822037 -7.3974621,-2.822037 -10.2194985,0 z m 21.3460945,18.4574751 0.66794,0.667939 c 0.499688,0.499688 0.499563,1.30978 -8.9e-5,1.809433 l -1.082604,1.082603 c -0.49967,0.49967 -1.309655,0.499688 -1.809343,0 l -0.667939,-0.667939 z"
sodipodi:nodetypes="sccccccccccsssssscsssscc" /><ellipse
style="fill:#ff7f00;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.63724;stroke-linecap:square;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1"
id="path14"
cx="7.2745399"
cy="7.1585941"
rx="3.0401888"
ry="3.086961" /></g></g><metadata
id="metadata2118"><rdf:RDF><cc:Work
rdf:about="" /></rdf:RDF></metadata></svg>

After

Width:  |  Height:  |  Size: 4.8 KiB