FreeCAD / FreeCAD

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

Flattened SVG export issues #14587

Open davesrocketshop opened 3 months ago

davesrocketshop commented 3 months ago

Is there an existing issue for this?

Problem description

The attached project file has several SVG export issues.

This is the piece modeled using Part Workbench: SVG Error

Selecting the part and exporting as a Flattened SVG produces this when imported into Inkscape: SVG Error - Inkscape

If you then ungroup the objects you get this: SVG Error - Inkscape Ungroup

Ungrouping the objects again, you can hit delete twice removing duplicate layers and finally winding up with a single copy: SVG Error - Inkscape Extra Layers

SVG Error.FCStd.zip

Full version info

Dev version built from source:

OS: Windows 11 build 22631
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.37670 (Git)
Build type: Release
Branch: main
Hash: ba0ff0db5e78973cb994b82f27bdd228c7ad41bd
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * ArchTextures
  * CfdOF 1.25.11
  * fasteners 0.5.17
  * fcgear 1.0.0
  * FeedsAndSpeeds 0.5.0
  * GDML.backup1701064072.5104816 2.0.0 (Disabled)
  * kicadStepUpMod 11.1.2
  * LCInterlocking
  * MaterialTest
  * OpenTheme 2024.5.3
  * render 2023.8.18
  * Rocket 4.0.0

Subproject(s) affected?

None

Anything else?

No response

Code of Conduct

maxwxyz commented 3 months ago

Maybe related https://github.com/FreeCAD/FreeCAD/issues/13249

Roy-043 commented 3 months ago

I get a different result. See attached SVG. There is a filled outline, and each edge of that shape is duplicated. Which does not seem to match the description. Note that I have only selected the End body for export.

SVG Error-End-roy

OS: Windows 8 build 9600
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.37645 (Git)
Build type: Release
Branch: main
Hash: fc714933a7e2423d5fa4db640af549814061c42e
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: