Hi, thanks for the feedback and contributions. Here is a new version of the current voronoi2svg.py file. The modifications are:
- Fixed a bug mentionned by ~suv on 2011-05-21. It occurred when the edges of the Voronoi diagram intersected a corner of the clipping box. Nice catch !
- Moved the "Please select seed objects!" error so that it occurs earlier to avoid the behavior described by Alvin on 2011-05-24. The automatic clipping box from seeds used a non existing bounding box. Thanks for testing.
- Handled correctly any transformation set on the tree branch leading to the group containing the seeds for "Page" clipping mode (previous version did not clip by page when a transformation was set on the group containing the seeds). To do so I coded two functions that could be useful in "simpletransform.py":
* invertTransform which computes the inverse transformation matrix of a given one
* getGlobalTransform which gathers the transformation of a node from the root of the document
These functions are currently in the attached file but if you feel like they could be useful in simpletransform.py I can generate a patch against it with this addition.
Hi, thanks for the feedback and contributions. Here is a new version of the current voronoi2svg.py file. The modifications are:
- Fixed a bug mentionned by ~suv on 2011-05-21. It occurred when the edges of the Voronoi diagram intersected a corner of the clipping box. Nice catch !
- Moved the "Please select seed objects!" error so that it occurs earlier to avoid the behavior described by Alvin on 2011-05-24. The automatic clipping box from seeds used a non existing bounding box. Thanks for testing.
- Handled correctly any transformation set on the tree branch leading to the group containing the seeds for "Page" clipping mode (previous version did not clip by page when a transformation was set on the group containing the seeds). To do so I coded two functions that could be useful in "simpletransfor m.py":
* invertTransform which computes the inverse transformation matrix of a given one
* getGlobalTransform which gathers the transformation of a node from the root of the document
These functions are currently in the attached file but if you feel like they could be useful in simpletransform.py I can generate a patch against it with this addition.