Skip to content

Commit

Permalink
Update DRC documentation for #1816 implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koefferlein committed Aug 4, 2024
1 parent 3521946 commit 817f00e
Showing 1 changed file with 25 additions and 17 deletions.
42 changes: 25 additions & 17 deletions src/drc/drc/built-in-macros/_drc_layer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2283,13 +2283,17 @@ def andnot(other)

# %DRC%
# @name inside
# @brief Selects edges or polygons of self which are inside edges or polygons from the other layer
# @brief Selects edges, edge pairs or polygons of self which are inside edges or polygons from the other layer
# @synopsis layer.inside(other)
#
# If layer is a polygon layer, the other layer needs to be a polygon layer too.
# In this case, this method selects all polygons which are completely inside
# polygons from the other layer.
#
# If layer is an edge pair layer, the other layer needs to be a polygon layer.
# In this case, this method selects all edge pairs which are completely inside
# polygons from the other layer.
#
# If layer is an edge layer, the other layer can be polygon or edge layer. In the
# first case, all edges completely inside the polygons from the other layer are
# selected. If the other layer is an edge layer, all edges completely contained
Expand Down Expand Up @@ -2329,10 +2333,10 @@ def andnot(other)

# %DRC%
# @name not_inside
# @brief Selects edges or polygons of self which are not inside edges or polygons from the other layer
# @brief Selects edges, edge pairs or polygons of self which are not inside edges or polygons from the other layer
# @synopsis layer.not_inside(other)
#
# This method computes the inverse of \inside - i.e. edges or polygons from the layer
# This method computes the inverse of \inside - i.e. edge, edge pairs or polygons from the layer
# not being inside polygons or edges from the other layer.
#
# This method returns a new layer containing the selected shapes. A version which modifies self
Expand Down Expand Up @@ -2370,7 +2374,7 @@ def andnot(other)
# @brief Returns the results of \inside and \not_inside at the same time
# @synopsis (a, b) = layer.split_inside(other)
#
# This method returns the polygons or edges inside of polygons or edges from the other layer in
# This method returns the polygons, edge pairs or edges inside of polygons or edges from the other layer in
# one layer and all others in a second layer. This method is equivalent to calling
# \inside and \not_inside, but is faster than doing this in separate steps:
#
Expand All @@ -2380,29 +2384,33 @@ def andnot(other)

# %DRC%
# @name select_inside
# @brief Selects edges or polygons of self which are inside edges or polygons from the other layer
# @brief Selects edges, edge pairs or polygons of self which are inside edges or polygons from the other layer
# @synopsis layer.select_inside(other)
#
# This method is the in-place version of \inside - i.e. it modifies the layer instead
# of returning a new layer and leaving the original layer untouched.

# %DRC%
# @name select_not_inside
# @brief Selects edges or polygons of self which are not inside edges or polygons from the other layer
# @brief Selects edges, edge pairs or polygons of self which are not inside edges or polygons from the other layer
# @synopsis layer.select_not_inside(other)
#
# This method is the in-place version of \inside - i.e. it modifies the layer instead
# of returning a new layer and leaving the original layer untouched.

# %DRC%
# @name outside
# @brief Selects edges or polygons of self which are outside edges or polygons from the other layer
# @brief Selects edges, edge pairs or polygons of self which are outside edges or polygons from the other layer
# @synopsis layer.outside(other)
#
# If layer is a polygon layer, the other layer needs to be a polygon layer too.
# In this case, this method selects all polygons which are entirely outside
# polygons from the other layer.
#
# If layer is an edge pair layer, the other layer needs to be a polygon layer.
# In this case, this method selects all edge pairs which are entirely outside
# polygons from the other layer.
#
# If layer is an edge layer, the other layer can be polygon or edge layer. In the
# first case, all edges entirely outside the polygons from the other layer are
# selected. If the other layer is an edge layer, all edges entirely outside
Expand Down Expand Up @@ -2442,10 +2450,10 @@ def andnot(other)

# %DRC%
# @name not_outside
# @brief Selects edges or polygons of self which are not outside edges or polygons from the other layer
# @brief Selects edges, edge pairs or polygons of self which are not outside edges or polygons from the other layer
# @synopsis layer.not_outside(other)
#
# This method computes the inverse of \outside - i.e. edges or polygons from the layer
# This method computes the inverse of \outside - i.e. edges, edge pairs or polygons from the layer
# not being outside polygons or edges from the other layer.
#
# This method returns a new layer containing the selected shapes. A version which modifies self
Expand Down Expand Up @@ -2483,7 +2491,7 @@ def andnot(other)
# @brief Returns the results of \outside and \not_outside at the same time
# @synopsis (a, b) = layer.split_outside(other)
#
# This method returns the polygons or edges outside of polygons or edges from the other layer in
# This method returns the polygons, edge pairs or edges outside of polygons or edges from the other layer in
# one layer and all others in a second layer. This method is equivalent to calling
# \outside and \not_outside, but is faster than doing this in separate steps:
#
Expand All @@ -2493,15 +2501,15 @@ def andnot(other)

# %DRC%
# @name select_outside
# @brief Selects edges or polygons of self which are outside edges or polygons from the other layer
# @brief Selects edges, edge pairs or polygons of self which are outside edges or polygons from the other layer
# @synopsis layer.select_outside(other)
#
# This method is the in-place version of \outside - i.e. it modifies the layer instead
# of returning a new layer and leaving the original layer untouched.

# %DRC%
# @name select_not_outside
# @brief Selects edges or polygons of self which are not outside edges or polygons from the other layer
# @brief Selects edges, edge pairs or polygons of self which are not outside edges or polygons from the other layer
# @synopsis layer.select_not_outside(other)
#
# This method is the in-place version of \outside - i.e. it modifies the layer instead
Expand Down Expand Up @@ -2571,7 +2579,7 @@ def andnot(other)
# It returns a new layer containing the selected shapes. A version which modifies self
# is \select_interacting.
#
# This method is available for polygon, text and edge layers. Edges can be selected
# This method is available for polygon, text, edge and edge pair layers. Edges and edge pairs can be selected
# with respect to other edges or polygons. Texts can be selected with respect to
# polygons. Polygons can be selected with respect to edges, texts and other polygons.
#
Expand Down Expand Up @@ -2612,7 +2620,7 @@ def andnot(other)
# It returns a new layer containing the selected shapes. A version which modifies self
# is \select_not_interacting.
#
# This method is available for polygon, text and edge layers. Edges can be selected
# This method is available for polygon, text, edge and edge pair layers. Edges and edge pairs can be selected
# with respect to other edges or polygons. Texts can be selected with respect to
# polygons. Polygons can be selected with respect to edges, texts and other polygons.
#
Expand Down Expand Up @@ -2668,7 +2676,7 @@ def andnot(other)
# It modifies self to contain the selected shapes. A version which does not modify self
# is \interacting.
#
# This method is available for polygon, text and edge layers. Edges can be selected
# This method is available for polygon, text, edge and edge pair layers. Edges and edge pairs can be selected
# with respect to other edges or polygons. Texts can be selected with respect to
# polygons. Polygons can be selected with respect to edges, texts and other polygons.
#
Expand All @@ -2690,7 +2698,7 @@ def andnot(other)
# It modifies self to contain the selected shapes. A version which does not modify self
# is \not_interacting.
#
# This method is available for polygon, text and edge layers. Edges can be selected
# This method is available for polygon, text, edge and edge pair layers. Edges or edge pairs can be selected
# with respect to other edges or polygons. Texts can be selected with respect to
# polygons. Polygons can be selected with respect to edges, texts and other polygons.
#
Expand Down Expand Up @@ -2772,7 +2780,7 @@ def andnot(other)
#
# This method will neither modify self nor other.
#
# This method is available for polygon, edge and text layers, similar to interacting.
# This method is available for polygon, edge, edge pair and text layers, similar to interacting.

# %DRC%
# @name pull_overlapping
Expand Down

0 comments on commit 817f00e

Please sign in to comment.