View Issue Details

IDProjectCategoryView StatusLast Update
0000751FreeCADBugpublic2012-06-13 18:05
Reporteresteewhy Assigned Toyorik  
PrioritynormalSeveritytrivialReproducibilityalways
Status closedResolutionno change required 
Product Version0.12 
Fixed in Version0.13 
Summary0000751: Typo in importSVG causes incorrect importing of Bezier curves
DescriptionSVG drawing, exported from InkScape is heavily distorted after being imported as geometry into FreeCAD.

This is seemingly caused by a typo in [FreeCAD0.12\Mod\Draft\importSVG.py], lines 562 and 563 are now:

  pole1 = Vector(point[0],point[1],0)
  pole2 = Vector(point[2],point[3],0)

But they should read:

  pole1 = Vector(point[0],-point[1],0)
  pole2 = Vector(point[2],-point[3],0)

(A test case is attached.)
TagsNo tags attached.
FreeCAD Information

Activities

2012-06-13 11:11

 

00044-cc.svg (Attachment missing)

yorik

2012-06-13 18:05

administrator   ~0002198

Hi,

Thanks for reporting and even bigger thanks for bringing a solution too!

The problem you are reporting has already been fixed in development version, the whole bezier curves handling has been totally rewritten since then...

As far as I can see, your example file now gives exact same results in inkscape and freecad.

Those changes will be available in next release of FreeCAD (but you can also grab a development version, see instructions on http://free-cad.sf.net )

If this is still a problem, don't hesitate to reopen this issue.

Issue History

Date Modified Username Field Change
2012-06-13 11:11 esteewhy New Issue
2012-06-13 11:11 esteewhy File Added: 00044-cc.svg
2012-06-13 12:45 wmayer Status new => assigned
2012-06-13 12:45 wmayer Assigned To => yorik
2012-06-13 18:05 yorik Note Added: 0002198
2012-06-13 18:05 yorik Status assigned => closed
2012-06-13 18:05 yorik Resolution open => no change required
2012-06-13 18:05 yorik Fixed in Version => 0.13