Perspective extension
Bug #169802 reported by
Another-one
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Critical
|
Unassigned |
Bug Description
Here is my perspective extension. It works like envelope ext (and is based
on it), but does correct perspective projection. Also, it accepts groups
for transforming.
There is external dependency: numpy, numeric package for python.
Interface is simple (like in envelope extension): select four-node path
(envelope to be projected into) (first) and object to transform (path or
group), then execute extension. Only paths inside groups are processed.
Known bugs: object transforms are not respected and this can lead to
strange results.
TODO: add user interface and "unperspective" option.
To post a comment you must log in.
Originator: NO
Thanks! I tested your extension but I'm getting strange results. First, it
looks like it expects the envelope to be the first selected object, not
last as it claims. Second, it shows warnings:
** (inkscape:26502): WARNING **: Format autodetect failed. The file is
being opened as SVG.
** (inkscape:26503): WARNING **: Format autodetect failed. The file is
being opened as SVG.
** (inkscape:26504): WARNING **: Format autodetect failed. The file is
being opened as SVG.
** (inkscape:26505): WARNING **: Format autodetect failed. The file is
being opened as SVG.
And finally, I attach a sample that I used - as you see the transformed
path (red) is not in the perspective envelope at all. Can you fix that?