Skip to content

Voronoi Diagram fails with objects outside a group

Replicate

  1. Distribute a bunch of circles on a canvas.
  2. Select all the circles.
  3. Click Extensions > Generate from path > Voronoi Diagram.
  4. Click Apply.

Expected

A Voronoi Diagram appears.

Actual

Traceback (most recent call last):
  File "voronoi2svg.py", line 292, in <module>
    Voronoi().run()
  File "/usr/share/inkscape/extensions/inkex/base.py", line 123, in run
    self.save_raw(self.effect())
  File "voronoi2svg.py", line 173, in effect
    trans = parent_group.composed_transform()
  File "/usr/share/inkscape/extensions/inkex/elements/_base.py", line 147, in __getattr__
    raise AttributeError("Can't find attribute {}.{}".format(self.typename, name))
AttributeError: Can't find attribute SvgDocumentElement.composed_transform

Version

$ inkscape --version
Inkscape 1.0 (4035a4fb49, 2020-05-01)
    Pango version: 1.44.7

Example

See attached.

circles-02.svg

Edited by Nathan Lee
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information