A polygonal geometrical primitives is defined by on or more polygonal chains (Points). Using multiple Points declarations defines a generalized polygon. The so defined domain is the region which is left to all polygonal chains. Therefore, the orientations of the individual polygonal chains are important.

As an example, a quadratically shaped ring (blue domain)


is constructed as

Polygon {
  Name = "Ring"
  Points = [-2 -2 2 -2 2 2 -2 2]
  Points = [-1 -1 -1 1 1 1 1 -1]
  DomainId = 2

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.

The Polygon is a geometrical primitive. The default port is the origin of the polygon.