[OpenSCAD] SVG import recenter

Ronaldo Persiano rcmpersiano at gmail.com
Mon Jan 15 18:08:58 EST 2018


I don't know how to answer that because I don't know the SVG file format.
The code I rendered to export was:

square(40);


and the exported file was:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "
http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="40mm" height="40mm" viewBox="0 -40 40 40" xmlns="
http://www.w3.org/2000/svg" version="1.1">
<title>OpenSCAD Model</title>
<path d="
M 0,-0 L 40,-0 L 40,-40 L 0,-40 z
" stroke="black" fill="lightgray" stroke-width="0.5"/>
</svg>


This file import renders a centered square with the correct size.

2018-01-15 19:49 GMT-02:00 Marius Kintel <marius at kintel.net>:

> Is this an export problem or an import problem? i.e. if you inspect your
> SVG file, does it look correct?
>
>  -Marius
>
> On Mon, Jan 15, 2018 at 4:04 PM, Ronaldo <rcmpersiano at gmail.com> wrote:
>
>> Why OpenSCAD SVG export reposition the object? I exported a square with a
>> vertex at the origin in SVG format and the file import is centered at the
>> origin. There is no way to restore the original position for non-regular
>> objects. Is there no way to save in a SVG file format its original origin?
>>
>>
>>
>>
>> --
>> Sent from: http://forum.openscad.org/
>>
>> _______________________________________________
>> OpenSCAD mailing list
>> Discuss at lists.openscad.org
>> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
>>
>
>
> _______________________________________________
> OpenSCAD mailing list
> Discuss at lists.openscad.org
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20180115/46cfd854/attachment-0002.html>


More information about the Discuss mailing list