From f0386b616a4921f6cff938b001297510c93ceffd Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Mon, 29 Mar 2021 17:27:16 +0200 Subject: [PATCH] Regenerated documentation --- src/lay/lay/doc/about/drc_ref_drc.xml | 6 +++-- src/lay/lay/doc/about/drc_ref_global.xml | 11 ++++++++ src/lay/lay/doc/about/drc_ref_source.xml | 34 ++++++++++++++++++++++++ 3 files changed, 49 insertions(+), 2 deletions(-) diff --git a/src/lay/lay/doc/about/drc_ref_drc.xml b/src/lay/lay/doc/about/drc_ref_drc.xml index dc30e7fe4..9b7471ea4 100644 --- a/src/lay/lay/doc/about/drc_ref_drc.xml +++ b/src/lay/lay/doc/about/drc_ref_drc.xml @@ -887,10 +887,12 @@ The plain function is equivalent to "primary.sized".

Usage:

-This operation acts on polygons and applies polygon smoothing with the tolerance d. See Layer#smoothed for more details. +This operation acts on polygons and applies polygon smoothing with the tolerance d. 'keep_hv' indicates +whether horizontal and vertical edges are maintained. Default is 'no' which means such edges may be distorted. +See Layer#smoothed for more details.

The "smoothed" method is available as a plain function or as a method on DRC expressions. The plain function is equivalent to "primary.smoothed". diff --git a/src/lay/lay/doc/about/drc_ref_global.xml b/src/lay/lay/doc/about/drc_ref_global.xml index 48877b955..52f6d583b 100644 --- a/src/lay/lay/doc/about/drc_ref_global.xml +++ b/src/lay/lay/doc/about/drc_ref_global.xml @@ -672,6 +672,17 @@ The following example computes every part of the input which is closer than out = in.drc(primary & foreign.sized(0.5.um))

+

"global_transform" - Gets or sets a global transformation

+ +

Usage:

+
    +
  • global_transform
  • +
  • global_transform([ transformations ])
  • +
+

+Applies a global transformation to the default source layout. +See Source#global_transform for a description of this feature. +

"holes" - Selects all holes from the input polygons

Usage:

diff --git a/src/lay/lay/doc/about/drc_ref_source.xml b/src/lay/lay/doc/about/drc_ref_source.xml index 7b29857d1..0b67aae86 100644 --- a/src/lay/lay/doc/about/drc_ref_source.xml +++ b/src/lay/lay/doc/about/drc_ref_source.xml @@ -109,6 +109,40 @@ The extent function is useful to invert a layer: inverse_1 = extent.sized(100.0) - input(1, 0)

+

"global_transform" - Gets or sets a global transformation

+ +

Usage:

+
    +
  • global_transform
  • +
  • global_transform([ transformations ])
  • +
+

+This method returns a new source representing the transformed layout. It is provided in the spritit of +Source#clip and similar methods. +

+The transformation +is either given as a DTrans, DVector or DCplxTrans object or as one of the +following specifications: +

+

+

+Multiple transformation specs can be given. In that case the transformations are applied right to left. +Using "global_transform" will reset any global transformation present already. +Without an argument, the global transformation is reset. +

+The following example rotates the layout by 90 degree at the origin (0, 0) and then shifts it up by +100 micrometers: +

+

+source.global_transform(shift(0, 100.um), rotate(90.0))
+
+

"input" - Specifies input from a source

Usage: