It looks like you're new here. If you want to get involved, click one of these buttons!
I am trying to script a shape with rounded corners. When I use the
sized() function on a
DPolygon I get little darts on the rounded corners. In the example below I resize the red shape by -3.5 um to get the blue shape. A similar effect also happens with a positive sizing on an interior corner. It is also not specific to rounded corners. I get something very similar with 90 degree corners.
This does not occur when using the GUI: Menu:Edit:Selection:Size Shapes.
Is there a way to get the same behavior as the GUI in a Python script? It seems like it might be related to having a
DPolygon instead of a
DSimplePolygon. But I cannot figure out how to create a
DSimplePolygon from a
DPolygon in Python.
I am using KLayout version 0.27.11 on Windows.
Suggestions are appreciated!