import of SVG with viewbox attribute overrides centering
Author: wolfwoodCreated Feb 14, 2025Updated Sep 11, 2026
LabelsType: Bug
via a reddit post https://www.reddit.com/r/openscad/comments/1in51qq/comment/mcaw2im/ by @garblesnarky
import("test.svg", center=true);
with test.svg
doesn't result in the imported file living at the origin. the user determined a viewbox attribute is the reason.
I was assuming this was a bug, but from the svg centering code it could be intentional? I'm looking for clarification so I can add an appropriate testcase, and a fix (or not).
Source: openscad/openscad