FreeCAD / FreeCAD

This is the official source code of FreeCAD, a free and opensource multiplatform 3D parametric modeler.
https://www.freecad.org
Other
19.01k stars 3.96k forks source link

SVG import to Sketch broken #15996

Open boboxx opened 3 weeks ago

boboxx commented 3 weeks ago

Is there an existing issue for this?

Problem description

I had a Inkskape SVG that I'm trying to import in FreeCAD. I'm able to import and convert to a sketch via the draft 2 sketch. The shape gets converted and I can extrude the sketch, but if i try to open the sketch to make modification, the sketch is empty.

I'm a few days old build as the latest few build release have been broken so I can't see if this has been fixed or not.

I have attached the FreeCAD file and SVG

Full version info

OS: macOS 14.6.1
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.38334 (Git)
Build type: Release
Branch: main
Hash: 61c964caa9a7e5bbc7a8d5f7d8914505d365113e
Python 3.11.9, Qt 5.15.13, Coin 4.0.2, Vtk 9.2.6, OCC 7.7.2
Locale: C/Default (C)
Installed mods: 
  * OpenTheme 2024.7.3

Subproject(s) affected?

None

Anything else?

Logo.zip

Code of Conduct

FEA-eng commented 3 weeks ago

I can't confirm on Windows:

sketch logo

OS: Windows 10 build 19045
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.38495 (Git)
Build type: Release
Branch: main
Hash: 131956e201dc5033de69ed09c28db332feb081c1
Python 3.11.9, Qt 5.15.13, Coin 4.0.2, Vtk 9.2.6, OCC 7.7.2
Locale: Polish/Poland (pl_PL)
luzpaz commented 3 weeks ago

@JohnOCFII would you mind testing on macOS ?

Roy-043 commented 3 weeks ago

I can confirm using the same version as @FEA-eng on Windows, with a reset configuration. Which is interesting...

I have created the sketch by selecting "path1", "path002" and "path003" and then pressing the Draft_Draft2Sketch button.

@FEA-eng can your attach your file?

My sketch has the same number of DoFs, the same number of constraints, and the same number of elements (all B-splines) as the sketch in the provided file.

Some B-splines are very short: 0.0005199999999945248 0.020498524505898126 0.021727681246914786 7.071067813507013e-05 (this one may be to blame?)

OS: Windows 8 build 9600
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.38495 (Git)
Build type: Release
Branch: main
Hash: 131956e201dc5033de69ed09c28db332feb081c1
Python 3.11.9, Qt 5.15.13, Coin 4.0.2, Vtk 9.2.6, OCC 7.7.2
Locale: C/Default (C) [ OS: Dutch/Netherlands (nl_NL) ]
Installed mods:
JohnOCFII commented 3 weeks ago

@JohnOCFII would you mind testing on macOS ?

Yes, I see the same behavior as the OP using the last working macOS weekly that I have:

OS: macOS 14.6.1
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.38459 (Git)
Build type: Release
Branch: main
Hash: 58729b3ab0060a1525fc45c87beabfd4b3d5e22e
Python 3.11.9, Qt 5.15.13, Coin 4.0.2, Vtk 9.2.6, OCC 7.7.2
Locale: C/Default (C)
Installed mods: 
  * FeedsAndSpeeds 0.5.0
  * OpenTheme 2024.8.17
FEA-eng commented 3 weeks ago

@FEA-eng can your attach your file?

Sure. It's not with a clean config though.

Logo.FCStd.zip

OS: Windows 10 build 19045
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.38506 (Git)
Build type: Release
Branch: main
Hash: ebf02483af225b502fccfa7111499dfde33999fd
Python 3.11.9, Qt 5.15.13, Coin 4.0.2, Vtk 9.2.6, OCC 7.7.2
Locale: Polish/Poland (pl_PL)
boboxx commented 3 weeks ago

Interesting, I have the same issue with your file. So it looks like the issue is on the rendering side and not the generation.