Skip to content

Strange Polygon Point Sequence #1839

@esigle

Description

@esigle

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.

point_sequence

Steps:

  1. Stark KLayout
  2. Open: h_cutout.gds (see .zip)
  3. execute DRC code on it: h_cutout_drc_code.lydrc
  4. Open generated file (for completeness, also provided in the .zip)
  5. Notice: Polygon point sequence changed, and is unnecessarily complex

h_cutout.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions