diff --git a/src/lay/lay/doc/about/drc_ref_layer.xml b/src/lay/lay/doc/about/drc_ref_layer.xml index e42e3b24a..062617f54 100644 --- a/src/lay/lay/doc/about/drc_ref_layer.xml +++ b/src/lay/lay/doc/about/drc_ref_layer.xml @@ -1027,74 +1027,11 @@ The following images show the effect of the extents method:

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.

"first_edges" - Returns the first edges of an edge pair collection