execuc / LCInterlocking

FreeCAD module to create laser cut interlocking parts.
GNU Lesser General Public License v2.1
141 stars 31 forks source link

[bug] SVG export converts circle to square #31

Closed Foadsf closed 4 years ago

Foadsf commented 5 years ago

I'm not sure if this is a bug in this workbench or is there any issues with the SVG export. but when I export the drawing of this part as SVG the circle is converted to a square!

2019-09-30_14-23-56

here the SVG file

test

I have explained the issue with more details here in the FreeCAD forum.

execuc commented 5 years ago

Hello, in May 2019, I had the same problem since FreeCAD 0.18. I have not tried since. I did not have a problem with 0.17 I marked a note in the export.md help file:

Some elements of projected parts have problems. For example, a circle may be displayed and exported in flatten SVG as hexagon. A workaround is to export in Autodesk DXF 2D (.dxf) format. It may be imported as inkscape but elements can not be ungrouped. To do it, dxf file has to be opened in librecad, then select all (Ctrl+a) and click on Tools -> Modify -> explode. Save file and re-import with inkscape. Now each segments and curves can be edited.

I have see the post in freecad forum it is maybe a bug in freecad.

luzpaz commented 4 years ago

This is an upstream (freecad) bug that is fixed in FreeCAD v0.19, so this ticket can be closed.
Perhaps mention on the README for users to use the latest v0.19 with this Addon (if this addon is compatible with it?).

execuc commented 4 years ago

@luzpaz I will update README for 0.19 as soon as I found the solution to the ticket #30 which blocks the use of this addon for this version.

luzpaz commented 4 years ago

Looks like #30 is closed. Shall we close this ticket?

execuc commented 4 years ago

Tested with FreeCAD_0.19-20802-Linux-Conda_glibc2.12-x86_64.AppImage, SVG export works.

rablack commented 3 years ago

There seems to be a workaround for this issue in 0.18 without resorting to dxf.

  1. In Preferences->Import-Export go to the SVG tab
  2. Edit the setting for "Max segment length for discretized arcs" to be something sensible greater than 0.00

As far as I can tell arcs that FreeCAD 0.18 doesn't know how to render as SVG are replaced with a series of straight-line segments. If you have the value of the setting mentioned above set to 0.00 FreeCAD appears to try to guess what segment length you want and it sometimes seems to guess wrongly.

I don't know whether this fixes every instance, but I had more than 10 problem models, all of which were fixed by setting the value to 0.1mm.

reox commented 1 year ago

I don't know whether this fixes every instance, but I had more than 10 problem models, all of which were fixed by setting the value to 0.1mm.

I'm in 0.20 and had to use 0.1mm as well, otherwise all circles were exported as polygons... Maybe it would be a good idea to add this in the documentation of the module?

anonymousALLDAY commented 6 months ago

same issue on 0.22, 0.21.1