You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was upgrading my machine the other day and I have tests which convert a lot of dxf files to my custom format and checks that no changes have occurred. I noticed that a few files had different output on Ubuntu 18.04 compared to 20.04.
Through some investigation it appears to be that ezdxf is creating different paths for the same ARC entity depending on what platform it is run. This is confusing as ezdxf has very few external dependencies.
I ran the conversion under a debugger on both platforms and the difference seems to be because the start angle differs very slightly dxf.start_angle is 180.0 on Ubuntu 20.04 but is 179.99999999999997 on Ubuntu 18.04.
This particular ARC was nested 2 levels deep in INSERTs which could be contributing to the difference. The vast majority of files were converted exactly the same on both platforms.
This isn't causing any problems but it's strange that the OS is making a difference so I thought I would mention it. If this doesn't matter to you then feel free to close the issue. If it does interest you then I may be able to investigate further, perhaps using docker to ensure the environment is clean and reproducable. I have more examples as well which may not be ARCs. I haven't looked into these yet.
The text was updated successfully, but these errors were encountered:
I was upgrading my machine the other day and I have tests which convert a lot of dxf files to my custom format and checks that no changes have occurred. I noticed that a few files had different output on Ubuntu 18.04 compared to 20.04.
Through some investigation it appears to be that ezdxf is creating different paths for the same ARC entity depending on what platform it is run. This is confusing as ezdxf has very few external dependencies.
platform_dependent_arc.dxf.zip
on 20.04 the curve is:
and on 18.04 the curve is:
I ran the conversion under a debugger on both platforms and the difference seems to be because the start angle differs very slightly
dxf.start_angle
is180.0
on Ubuntu 20.04 but is179.99999999999997
on Ubuntu 18.04.This particular ARC was nested 2 levels deep in INSERTs which could be contributing to the difference. The vast majority of files were converted exactly the same on both platforms.
This isn't causing any problems but it's strange that the OS is making a difference so I thought I would mention it. If this doesn't matter to you then feel free to close the issue. If it does interest you then I may be able to investigate further, perhaps using docker to ensure the environment is clean and reproducable. I have more examples as well which may not be ARCs. I haven't looked into these yet.
The text was updated successfully, but these errors were encountered: