fix in convex hull
This commit is contained in:
parent
632b62b481
commit
edc8313bbf
@ -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 = []
|
||||
|
||||
@ -115,5 +116,9 @@ class ConvexHull(inkex.EffectExtension):
|
||||
paths_clone_transform = None
|
||||
self.joinWithNode(path, pdata, makeGroup, paths_clone_transform)
|
||||
|
||||
else:
|
||||
inkex.errormsg('Please select some paths first.')
|
||||
return
|
||||
|
||||
if __name__ == '__main__':
|
||||
ConvexHull().run()
|
Reference in New Issue
Block a user