transform attribute created by Union not removed by Optimize
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hi Friends,
This is first reported in Inkscape Community forum: https:/
When performing a Union, a transform attribute is created. When the units are mm, the value is scale(0.26458333).
For the user, this results in dimensions with many decimal places. The many decimal places cause the gcode to be massively larger amount of code. (Please read the thread for details which I don't completely understand. Also additional screenshots.)
When the units are pixels, the transform attribute value is translate(
Another intersting note. (Well, interesting to me....) As soon as the unioned object is moved, even by 0.001, the transform attribute disappears. That happens with both px and mm.
Attaching the test file provided by the user. I've reproduce on Windows 7 Pro, 64-bit, Inkscape 0.92.2 stable, 7z package. The user reports Windows 10 and Inkscape 0.92.2
Let me know if you need any additional info.
Thanks :-)
summary: |
- transform attribute created by Union + transform attribute created by Union not removed by Optimize |
The transform is applied to accommodate the scale of 1uu/mm. The transform would not be applied if the scale were set to 3.77953/uu (=96dpi). (See bug https:/ /bugs.launchpad .net/inkscape/ +bug/1670913)
Gif demonstration here: https:/ /dl.dropbox. com/s/7eno6jty0 0zr5au/ 2017-09- 11_10-28- 24.gif
The transform is retained because Inkscape will not change xml that is not "touched" with an edit. Nudging the transformed object up and back removes the transform and optimizes the path nodes in the xml.
I'd say the bug is that the transform is not removed/optimized after the boolean operation, nor is it removed when the document is saved.
WRT the user's gcode, this is likely a bug in the user's CAM application. Testing variations with and without transforms; with scale = 1uu/mm and scale = 3.77953uu/mm using SheetCam shows no variation in gcode.
Image of gcode comparison (generated with Sheetcam): /dl.dropbox. com/s/vo39lpzho g7gdj0/ TextPad_ 2017-09- 11_11-02- 22.png
https:/
[opinion]
Starting with scale=1uu/mm as the default.svg has revealed the issue, but continues to create user confusion. Suggest default.svg be packaged with 1uu/px for releases and let users change display units to other (mm, in, etc) if desired.
[/opinion]
TD