Generalized PolygonΒΆ

Learning targets

  • Define a generalized polygon

A generalized polygon consists of multiple simple polygonal chains. The defined domain is the region which is left to all polygonal chains. Therefore, the orientations of the individual polygonal chains are important.

This example defines a quadratically shaped ring (blue domain) placed in a computational domain.

_images/ex2d_generalized_polygon_mesh.png

To define the generalized polygon in layout.jcm we use two Points declarations within the Polygon section yielding two separate polygonal chains. The outer polygonal chain has counter-clockwise orientation, while the inner polygonal chain is oriented in clockwise direction. Thus only the blue region is left to both polygonal chains.

Similar to the GDSII input format the polygonal chains may touch each other and common polygon segments disappear when they are equally often traversed in both directions.

.jcm Input File

  • layout.jcm [ASCII]

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    Layout2D {  
      UnitOfLength = 1  
      Objects {  
        Parallelogram {
          Name = "ComputationalDomain"
          Width = 6
          Height = 6
          Priority = -1
        }
        
        Polygon {
          Name = "Ring"
          Points = [-2 -2 2 -2 2 2 -2 2]
          Points = [-1 -1 -1 1 1 1 1 -1]
          DomainId = 2
          Priority=2
        }
      }
    }