Help needed: Extensions rotate path
Hi all,
I've been refactoring the extensions code and while working on the paths support, I've become blocked on the rotate path functionality and need help.
It's supposed to be able to rotate each of the points in the point list around the center x,y and it's based on the original code.
But I have two problems. Firstly, I can't seem to find a way to get inkscape to output the kind of rotated path that would make writing a trustworthy test easier (and I don't know how to do the calculations by hand)
And secondly, I'm not entirely sure if the original code worked or not.
If you know anything about geometry or the original python, can you take a look at https://gitlab.com/inkscape/extensions/blob/master/inkex /paths.py#L92 which is the code in question and https://gitlab.com/inks cape/extensions/blob/master/tests/test_inkex_paths.py#L124 which is the respective test code. Tests can be run with `python3 setup.py test -s tests.test_inkex_paths`
Best Regards, Martin Owens
participants (1)
-
unknown@example.com