mirror of https://github.com/KLayout/klayout.git
Regenerated documentation
This commit is contained in:
parent
311d0e3ca7
commit
f0386b616a
|
|
@ -887,10 +887,12 @@ The plain function is equivalent to "primary.sized".
|
|||
<keyword name="smoothed"/>
|
||||
<p>Usage:</p>
|
||||
<ul>
|
||||
<li><tt>expression.smoothed(d)</tt></li>
|
||||
<li><tt>expression.smoothed(d [, keep_hv ])</tt></li>
|
||||
</ul>
|
||||
<p>
|
||||
This operation acts on polygons and applies polygon smoothing with the tolerance d. See <a href="/about/drc_ref_layer.xml#smoothed">Layer#smoothed</a> 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 <a href="/about/drc_ref_layer.xml#smoothed">Layer#smoothed</a> for more details.
|
||||
</p><p>
|
||||
The "smoothed" method is available as a plain function or as a method on <a href="/about/drc_ref_drc.xml">DRC</a> expressions.
|
||||
The plain function is equivalent to "primary.smoothed".
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
</pre>
|
||||
</p>
|
||||
<a name="global_transform"/><h2>"global_transform" - Gets or sets a global transformation</h2>
|
||||
<keyword name="global_transform"/>
|
||||
<p>Usage:</p>
|
||||
<ul>
|
||||
<li><tt>global_transform</tt></li>
|
||||
<li><tt>global_transform([ transformations ])</tt></li>
|
||||
</ul>
|
||||
<p>
|
||||
Applies a global transformation to the default source layout.
|
||||
See <a href="/about/drc_ref_source.xml#global_transform">Source#global_transform</a> for a description of this feature.
|
||||
</p>
|
||||
<a name="holes"/><h2>"holes" - Selects all holes from the input polygons</h2>
|
||||
<keyword name="holes"/>
|
||||
<p>Usage:</p>
|
||||
|
|
|
|||
|
|
@ -109,6 +109,40 @@ The extent function is useful to invert a layer:
|
|||
inverse_1 = extent.sized(100.0) - input(1, 0)
|
||||
</pre>
|
||||
</p>
|
||||
<a name="global_transform"/><h2>"global_transform" - Gets or sets a global transformation</h2>
|
||||
<keyword name="global_transform"/>
|
||||
<p>Usage:</p>
|
||||
<ul>
|
||||
<li><tt>global_transform</tt></li>
|
||||
<li><tt>global_transform([ transformations ])</tt></li>
|
||||
</ul>
|
||||
<p>
|
||||
This method returns a new source representing the transformed layout. It is provided in the spritit of
|
||||
<a href="/about/drc_ref_source.xml#clip">Source#clip</a> and similar methods.
|
||||
</p><p>
|
||||
The transformation
|
||||
is either given as a <class_doc href="DTrans">DTrans</class_doc>, <class_doc href="DVector">DVector</class_doc> or <class_doc href="DCplxTrans">DCplxTrans</class_doc> object or as one of the
|
||||
following specifications:
|
||||
</p><p>
|
||||
<ul>
|
||||
<li>"shift(x, y)": shifts the input layout horizontally by x and vertically by y micrometers
|
||||
<li>"rotate(a)": rotates the input layout by a degree counter-clockwise
|
||||
<li>"magnify(m)": magnifies the input layout by the factor m (NOTE: using fractional scale factors may result in small gaps due to grid snapping)
|
||||
<li>"mirror_x": mirrors the input layout at the x axis
|
||||
<li>"mirror_y": mirrors the input layout at the y axis
|
||||
</ul>
|
||||
</p><p>
|
||||
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.
|
||||
</p><p>
|
||||
The following example rotates the layout by 90 degree at the origin (0, 0) and then shifts it up by
|
||||
100 micrometers:
|
||||
</p><p>
|
||||
<pre>
|
||||
source.global_transform(shift(0, 100.um), rotate(90.0))
|
||||
</pre>
|
||||
</p>
|
||||
<a name="input"/><h2>"input" - Specifies input from a source</h2>
|
||||
<keyword name="input"/>
|
||||
<p>Usage:</p>
|
||||
|
|
|
|||
Loading…
Reference in New Issue