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: 70
Joined: Fri Jul 31, 2015 1:35 pm
Location: Mexico
Contact:

Ellipse issues imported from SVG files

Postby EdgarRobles » Fri Apr 01, 2016 10:56 pm

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 2062 times
2.- Import as a drawing. (Arrow points does not appear)
Diagram_imported.png
Diagram_imported.png (131.23 KiB) Viewed 2062 times
3.- Import as a geometry. (Ellipses out of right place and deformed)
SVG_imported.png
SVG_imported.png (111.95 KiB) Viewed 2062 times
Sorry for my bad english.
Original SVG_file.
Attachments
Bug.svg
(14.02 KiB) Downloaded 85 times
User avatar
yorik
Site Admin
Posts: 12239
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels, Belgium
Contact:

Re: Ellipse issues imported from SVG files

Postby yorik » Sat Apr 02, 2016 4:11 pm

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: 70
Joined: Fri Jul 31, 2015 1:35 pm
Location: Mexico
Contact:

Re: Ellipse issues imported from SVG files

Postby EdgarRobles » Sat Apr 02, 2016 4:50 pm

User avatar
yorik
Site Admin
Posts: 12239
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels, Belgium
Contact:

Re: Ellipse issues imported from SVG files

Postby yorik » Sat Apr 02, 2016 5:06 pm

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

Re: Ellipse issues imported from SVG files

Postby bejant » Sat Apr 02, 2016 5:09 pm

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
Posts: 10757
Joined: Thu Jan 05, 2017 9:03 pm

Re: Ellipse issues imported from SVG files

Postby Kunda1 » Mon Feb 20, 2017 7:57 pm

soft bump
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
cox
Posts: 971
Joined: Wed Nov 26, 2014 11:37 pm

Re: Ellipse issues imported from SVG files

Postby cox » Mon Feb 20, 2017 10:39 pm

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
Posts: 2611
Joined: Tue Feb 21, 2012 8:07 pm
Location: Torino - Italy

Re: Ellipse issues imported from SVG files

Postby renatorivo » Tue Feb 21, 2017 5:10 pm

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 1873 times
bug-renato-1.png
bug-renato-1.png (23.85 KiB) Viewed 1867 times
Renato
renatorivo
Posts: 2611
Joined: Tue Feb 21, 2012 8:07 pm
Location: Torino - Italy

Re: Ellipse issues imported from SVG files

Postby renatorivo » Tue Feb 21, 2017 6:37 pm

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

Re: Ellipse issues imported from SVG files

Postby EdgarRobles » Wed Feb 22, 2017 5:39 am

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