Ticket #2488: Standard paths issues from import SVG to FreeCAD (was: Ellipse issues imported from SVG files)

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
EdgarRobles
Posts: 72
Joined: Fri Jul 31, 2015 1:35 pm
Location: Mexico
Contact:

Ticket #2488: Standard paths issues from import SVG to FreeCAD (was: Ellipse issues imported from SVG files)

Post by EdgarRobles »

I found some issues when i was making my CNC box case, It looks like it is something related to ellipse decoding.

OS: Ubuntu 14.04.4 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6668 (Git)
Build type: None
Branch: master
Hash: 7dbcbc0f762b1d21abc50e79112a0cf9be97bd47
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17

Here we have a short test made on Inkscape and result of import to FreeCAD.
1.-I made a draw on Inkscape incluing form that do the issues.
Original_file.png
Original_file.png (139.51 KiB) Viewed 3422 times
2.- Import as a drawing. (Arrow points does not appear)
Diagram_imported.png
Diagram_imported.png (131.23 KiB) Viewed 3422 times
3.- Import as a geometry. (Ellipses out of right place and deformed)
SVG_imported.png
SVG_imported.png (111.95 KiB) Viewed 3422 times
Sorry for my bad english.
Original SVG_file.
Attachments
Bug.svg
(14.02 KiB) Downloaded 118 times
User avatar
yorik
Founder
Posts: 13659
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Ellipse issues imported from SVG files

Post by yorik »

hm the ellipses are not ellipses anymore in the svg file, they have become standard paths. Nevertheless, they should normally be imported without errors.

I have not enough time these days to look into this, would you mind opening a ticket on the tracker at http://www.freecadweb.org/tracker (you can add a link to this forum thread) so we don't forget about it?
EdgarRobles
Posts: 72
Joined: Fri Jul 31, 2015 1:35 pm
Location: Mexico
Contact:

Re: Ellipse issues imported from SVG files

Post by EdgarRobles »

User avatar
yorik
Founder
Posts: 13659
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Ellipse issues imported from SVG files

Post by yorik »

thanks!
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: Ellipse issues imported from SVG files

Post by bejant »

issue #2488 as reported by EdgarRobles

blue = edit
Last edited by bejant on Tue Feb 21, 2017 4:31 am, edited 1 time in total.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Ellipse issues imported from SVG files

Post by Kunda1 »

soft bump
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
cox
Posts: 971
Joined: Wed Nov 26, 2014 11:37 pm

Re: Ellipse issues imported from SVG files

Post by cox »

I can confirm that this is still an issue in :

OS: "Arch Linux"
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10167 (Git)
Build type: Release
Branch: master
Hash: 112749bc97e557b14bf16c216bf012915975e22d
Python version: 2.7.13
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.9.1
Need help? Feel free to ask, but please read the guidelines first
renatorivo
Veteran
Posts: 2611
Joined: Tue Feb 21, 2012 8:07 pm
Location: Torino - Italy

Re: Ellipse issues imported from SVG files

Post by renatorivo »

I'm not an expert Inkscape, but after some changes in Inkscape there have been improvements.
Sure it's a bug? or it depends on how the svg file is created and saved?
bug-renato.png
bug-renato.png (4.96 KiB) Viewed 3233 times
bug-renato-1.png
bug-renato-1.png (23.85 KiB) Viewed 3227 times
Renato
renatorivo
Veteran
Posts: 2611
Joined: Tue Feb 21, 2012 8:07 pm
Location: Torino - Italy

Re: Ellipse issues imported from SVG files

Post by renatorivo »

After another workaround, I have all the edges. I think.
bug4.png
bug4.png (34.87 KiB) Viewed 3217 times
Renato
EdgarRobles
Posts: 72
Joined: Fri Jul 31, 2015 1:35 pm
Location: Mexico
Contact:

Re: Ellipse issues imported from SVG files

Post by EdgarRobles »

I opened bug.svg on inkscape 0.91 and it don't seems any issue but i tried open same file on freecad and it's doing always the same faults

OS: Ubuntu 16.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10168 (Git)
Build type: None
Branch: master
Hash: 6630bcf9fa8e849fe846d1c2b780148a7a2c1e4b
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
Post Reply