-
Notifications
You must be signed in to change notification settings - Fork 261
Description
I use KLayout for converting Gerber PCBs to DXFs that I can import into EM simulation software.
It seems that there are two main ways that filled planes are handled, depending on the "polygon handling" mode:
-
POLYLINE etc: Export the perimeter of the zone, then export each cutout as a separate polyline. When imported into the EM software, rather than creating a zone with holes, it creates the antipads as physical objects. You can manually select them and use Boolean operations to subtract them from the plane, but this is extremely labor intensive for more complex layouts.
-
Decompose into SOLID: This works, but is extremely slow to load because of the huge number of separate polygons. The EM software can merge them, but it takes hours to process (I'm working with them to try and optimize this process).
It would be nice if we had a third option: decomposing large, complex polygons into the minimum number of smaller polyline-based polygons needed to cover the surface of the polygon. Alternatively, degenerate polygons with zero-width slits (i.e. backtracking edges) around via antipads are acceptable on my end.
Side note: The DXF version generated is extremely old (AutoCAD 1988 if memory serves me right) which some modern tools have issues with. Perhaps we could look into supporting a more recent DXF version as well?