It looks like you're new here. If you want to get involved, click one of these buttons!
How would I go about checking for zero area polygons and paths. I tried iterating through all the layers of each cell then through all the shapes, and checking the area of each shape, but that didn't work for some reason. Are there any other methods?
Comments
Hi @aarush,
Maybe pasting some code is helpful to see what you did.
In DRC, you cannot directly iterate, as the normal iteration through "each" will give you merged polygons and this means, zero-area polygons vanish.
However, you can switch to "raw" mode which gives you the original polygons:
Matthias
Hi @Matthias,
This is my current main logic block:
Could I just use the code you sent above to iterate through all the layers and get the zero order polygons?
Hi @aarush,
your code is Python acting directly on the shapes, not DRC.
You should not use a recursive shape iterator from every cell, as it will dive down in the hierarchy. Instead just iterate the shapes of the individual cell:
Matthias
Hi Matthias,
Unfortunately, this still doesn't replicate the behavior from the app. This is my main run function:
What is going wrong?
Best,
Aarush
Hi @aarush,
In which way are the results different? Do you get an error?
Maybe it's best to attach a test case. You cannot attach GDS directly, but you can attach .zip archives.
Matthias