fix in convex hull

This commit is contained in:
leyghisbb 2021-04-14 20:53:56 +02:00
parent 632b62b481
commit edc8313bbf

View File

@ -76,9 +76,10 @@ class ConvexHull(inkex.EffectExtension):
etree.SubElement(g, inkex.addNS('path', 'svg' ), line_attribs)
def effect(self):
if len(self.svg.selected) > 0:
global output_nodes, points
#Loop through all the selected items in Inkscape
for node in self.svg.selected.values():
#create numpy array of nodes
n_array = []
@ -113,7 +114,11 @@ class ConvexHull(inkex.EffectExtension):
path = 'polygon'
makeGroup = False
paths_clone_transform = None
self.joinWithNode(path, pdata, makeGroup, paths_clone_transform )
self.joinWithNode(path, pdata, makeGroup, paths_clone_transform)
else:
inkex.errormsg('Please select some paths first.')
return
if __name__ == '__main__':
ConvexHull().run()