Small fix for path intersections
This commit is contained in:
parent
adbdc6d218
commit
65bfeb6ea8
@ -15,4 +15,4 @@
|
||||
<script>
|
||||
<command location="inx" interpreter="python">fablabchemnitz_path_intersections.py</command>
|
||||
</script>
|
||||
</inkscape-extension>
|
||||
</inkscape-extension>
|
@ -248,9 +248,8 @@ class IntersectionChecker(Checker):
|
||||
subpaths.append(raw[prev:])
|
||||
seg = []
|
||||
for simpath in subpaths:
|
||||
closed = False
|
||||
if simpath[-1][0] == 'Z':
|
||||
closed = True
|
||||
simpath[-1][0] = 'L'
|
||||
if simpath[-2][0] == 'L': simpath[-1][1] = simpath[0][1]
|
||||
else: simpath.pop()
|
||||
for i in range(len(simpath)):
|
||||
@ -421,4 +420,4 @@ class Precut(inkex.Effect):
|
||||
|
||||
if __name__ == "__main__":
|
||||
logging.basicConfig(stream=sys.stderr, level=logging.WARNING, format="%(levelname)s %(message)s")
|
||||
Precut().run()
|
||||
Precut().run()
|
||||
|
Reference in New Issue
Block a user