From 127b520899930ca11bb613aa06194bff649a1e05 Mon Sep 17 00:00:00 2001
From: Matthias Koefferlein Usage:
-This method will attempt to fill the polygons of the layer with a regular pattern
-of shapes.
-
-The fill function currently is not available in deep mode.
-
-Options are:
-
-
-
-
-"fill_pattern" generates a fill pattern object. This object is used for configuring the fill pattern -content. Fill pattern need to be named. The name will be used for generating the fill cell. -
-To provide a fill pattern, create a fill pattern object and add shapes to it. The following example creates -a fill pattern named "FILL_CELL" and adds a 1x1 micron box on layer 1/0: -
-
-p = fill_pattern("FILL_CELL")
-p.shape(1, 0, box(0.0, 0.0, 1.0, 1.0))
-
--See box for details about the box specification. You can also add paths or polygons with path or polygon. -
-A more compact way of writing this is: -
-
-p = fill_pattern("FILL_CELL").shape(1, 0, box(0.0, 0.0, 1.0, 1.0))
-
--The fill pattern can be given a reference point which is used for placing the pattern. The reference point -is the one which is aligned with the pattern origin. The following code will assign (-0.5, -0.5) as the reference -point for the 1x1 micron rectangle. Hence the reference point is a little below and left of the rectangle which -in turn shifts the rectangle fill pattern to the right and up: -
-
-p = fill_pattern("FILL_CELL")
-p.shape(1, 0, box(0.0, 0.0, 1.0, 1.0))
-p.origin(-0.5, -0.5)
-
--Without a reference point given, the lower left corner of the fill pattern's bounding box will be used -as the reference point. -
-With these ingredients will can use the fill function. The first example fills the polygons -of "to_fill" with an orthogonal pattern of 1x1 micron rectangles with a pitch of 2 microns: -
-
-pattern = fill_pattern("FILL_CELL").shape(1, 0, box(0.0, 0.0, 1.0, 1.0)).origin(-0.5, -0.5)
-to_fill.fill(pattern, hstep(2.0), vstep(2.0))
-
--This second example will create a skewed fill pattern in auto-origin mode: -
-
-pattern = fill_pattern("FILL_CELL").shape(1, 0, box(0.0, 0.0, 1.0, 1.0)).origin(-0.5, -0.5)
-to_fill.fill(pattern, hstep(2.0, 1.0), vstep(-1.0, 2.0), auto_origin)
-
+This method has the same call syntax and functionality than fill. Other than this method
+it will return the area not covered by fill cells as a DRC layer.