It looks like you're new here. If you want to get involved, click one of these buttons!
I have many rectangles in a layer and I put them in a region. Now I would like to select each of them and the round corners. It is possible to do this using Python?
Edit: I tried to use the code below. But nothing happened after I ran my code. All the polygons remain the same. My polygons are simply 30um by 30um squares.
for shapeObj in cell.each_shape(layer_index): #shapeObj is polygon
shapeObj.polygon.round_corners(1000,1000,16)
Thanks in advance!
Comments
The problem is that "Shape.polygon" returns a copy - you only modify the copy, not the original polygon which is an opaque binary object inside the database.
To write the polygon back, use
Matthias