-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visicut shows extra padding around object #720
Comments
Thanks for the good bugreport! Can you try to further simplify the example file? Currently the file has five levels of groups, transforms etc., which will be quite difficult to debug. |
I've simplified the SVG file to one path with a scale transform. No nested groups needed.
This figure Z is constucted with dimensions of 20000. The scale reduces this to 2 cm x 2 cm. The stroke width is set to 100; in inkscape the scale is correctly applied, resulting in an effective stroke width of 0.1mm In visicut, the stroke width remain unaffected by the scale when doing the bounding box computation. That is a bug. The bounding box computation includes sufficient padding to keep the entirety of an imaginary 100mm wide stroke inside the bounding box. We get 50 mm added to each side, resulting in a 12 cm x 12 cm area with the Z in the center. |
BTW: In inkscape there is a switch, visual bouning box / geometric bouning box, I ususall choose the latter, so that stroke widths do not distort object sizes. |
For `<path transform="..." style="stroke-width:...">`, VisiCut ignored the `transform` when calculating the effective stroke width that is used to determine the bounding box. As a result, some files showed way too large bounding boxes and could not be moved fully to the top left.
For `<path transform="..." style="stroke-width:...">`, VisiCut ignored the `transform` when calculating the effective stroke width that is used to determine the bounding box. As a result, some files showed way too large bounding boxes and could not be moved fully to the top left.
With #727 it should hopefully be better. I didn't test it in detail, maybe it is still wrong for some special case. Now the stroke width is computed correctly, although we need it only for engraving ("visual bounding box") and not for cutting ("geometric bounding box"). Please create a separate issue for that. |
In inkscape I have drawn a numeral 3 (using hershey 1 line font)
The numeral is ca 4cm high, the viewbox fits very tightly.
For the screenshot, I pressed CTRL-A (select all) to demonstrate the effective bounding box:
When this SVG is sent to visicut (either via extension or save and load) it is shown with a huge padding.
This makes it difficult to set the starting point of the laser accurately.
Expected behaviour:
bb33.svg.zip
The text was updated successfully, but these errors were encountered: