Import GDS and do round corners for polygons

Hi community,

I am having some troubles doing round corners for imported gds in python script. Since I need to use polygon.round_corners for the purpose, I was thinking to iterate all the shapes on a certain layer and perform the operation on the polygons in the corresponding shapes. However, while I do each_shape (and also other shape iterator methods) on the top cell or some cell, I never really get any shapes returned. I just got None.

If anyone in the community has an idea how this should work, please let me know. Thank you!

Comments

  • Hi,

    such a discussion is far easier if you paste script code to show what you've done.

    On the other hand, I'd just try a DRC script. Here is a sample:

    geo = input(1, 0)
    # inner radius, outer radius, number of points/full circle
    rounded = geo.rounded_corners(100.nm, 200.nm, 32)
    rounded.output(10, 0)
    

    Matthias

Sign In or Register to comment.