Replies: 2 comments 1 reply
-
Thank you for your offer, but in my opinion this is a task for a human using an interactive CAD application and cannot be solved by an automated function call of a library like ezdxf. Even with a simple task like this, it's hard to tell what the "correct" result is: |
Beta Was this translation helpful? Give feedback.
-
Shouldn't this be done by the cutter software? In any case, this is a very specific problem for laser cutting and only marginally related to the DXF file format itself (the graphical entities look the same in a CAD application). BTW: CAD applications order the entities by ascending handle values by default. The entity order can be changed by the header variable
|
Beta Was this translation helpful? Give feedback.
-
I have a dxf file not optimized, in a sense that there are many useless moves:
On the image above, only circles and the contour belongs to the actual dxf, other lines are just moves.
I wanted to avoid this, so I wrote a basic path optimizer for ezdxf:
It's not perfect, but before to improve it I wonder if there is a built-in ezdxf feature to do this.
If not, I can improve and publish my script as an ezdxf addon.
Beta Was this translation helpful? Give feedback.
All reactions