-
Notifications
You must be signed in to change notification settings - Fork 245
Description
Hey @klayoutmatthias
I'm reporting a strange behavior in 0.29.6 (also in 0.29.3) regarding the creation of polygons for derived layers using DRC.
I tried to make a minimum-example to show the issue. The files needed are in the .zip.
I created a shape in Virtuoso and exported it as a .gds file (called h_cutout.gds). Then, usually with more complex layouts, I want to create derived layers of the design with boolean operations using DRC. Using only the input() command and writing it to the derived_layer file, the newly created polygon in h_cutout_derived_layer.gds shows a different point sequence. The new point sequence is unnecessarily complex and creates issues when importing the derived layers into other programs (e.g. CST). The polygon is not self-intersecting, however I expected the point sequence to stay the same/similar.
Using Python, importing the layer to a region and writing the shapes of the region into the new layer, has the same result.
Steps:
- Stark KLayout
- Open: h_cutout.gds (see .zip)
- execute DRC code on it: h_cutout_drc_code.lydrc
- Open generated file (for completeness, also provided in the .zip)
- Notice: Polygon point sequence changed, and is unnecessarily complex