Open Kazzz-S opened 5 years ago
Hi Kazzz,
you're right - the problem is that for paths - unlike polygons - there is no good "split" approach. The problem is manifold:
What I can do however is to convert paths with too many points into polygons and apply splitting there.
Would this be a feasible solution?
Best regards,
Matthias
Hi Matthias,
Thanks for your reply.
What I can do, however, is to convert paths with too many points into polygons and apply splitting there.
Would this be a feasible solution?
Yes, I think this can be a solution. The various issues regarding long PATHs you described above are also important. So when such a PATH is found in saving to GDS2, I think, it would be better to flag on a warning to prompt the user to select (1) using Multi-XY record mode or (2) converting it to a set of polygons. Or such a choice can be added to the Writer Option from the beginning.
Fortunately, in my case, I can use a commercial tool, and its "split approach" shown in the attached file works okay with the CAE tool. Moreover, the CAE tool can accept POLYLINEs in DXF. Both the data were computed normally, and the results agreed perfectly. GDS2 was much faster, though:-)
Warm regards, Kazzz
Please refer to the attached ZIP file long-path.zip.
When opening curl-KL.gds, I got the error shown below.
Other conditions are as follows.
If I enable the Multi-XY record mode, KLayout can open the generated GDS2 normally. However, some CAE tools require backward compatibility (old style).
Thank you and best regards, Kazzz