mirror of https://github.com/KLayout/klayout.git
WIP: updated test data (bugfix: bulk does not have layer properties), Fixed Region::count and Region::hier_count (was counting non-polygons too)
This commit is contained in:
parent
3789e38ce3
commit
19b28982e7
|
|
@ -224,10 +224,10 @@ OriginalLayerRegion::count () const
|
|||
size_t nn = 0;
|
||||
if (iter.multiple_layers ()) {
|
||||
for (std::vector<unsigned int>::const_iterator l = iter.layers ().begin (); l != iter.layers ().end (); ++l) {
|
||||
nn += layout.cell (*c).shapes (*l).size (iter.shape_flags ());
|
||||
nn += layout.cell (*c).shapes (*l).size (iter.shape_flags () & db::ShapeIterator::Regions);
|
||||
}
|
||||
} else {
|
||||
nn += layout.cell (*c).shapes (iter.layer ()).size (iter.shape_flags ());
|
||||
} else if (iter.layer () < layout.layers ()) {
|
||||
nn += layout.cell (*c).shapes (iter.layer ()).size (iter.shape_flags () & db::ShapeIterator::Regions);
|
||||
}
|
||||
n += cc.weight (*c) * nn;
|
||||
}
|
||||
|
|
@ -265,10 +265,10 @@ OriginalLayerRegion::hier_count () const
|
|||
}
|
||||
if (iter.multiple_layers ()) {
|
||||
for (std::vector<unsigned int>::const_iterator l = iter.layers ().begin (); l != iter.layers ().end (); ++l) {
|
||||
n += layout.cell (*c).shapes (*l).size (iter.shape_flags ());
|
||||
n += layout.cell (*c).shapes (*l).size (iter.shape_flags () & db::ShapeIterator::Regions);
|
||||
}
|
||||
} else {
|
||||
n += layout.cell (*c).shapes (iter.layer ()).size (iter.shape_flags ());
|
||||
} else if (iter.layer () < layout.layers ()) {
|
||||
n += layout.cell (*c).shapes (iter.layer ()).size (iter.shape_flags () & db::ShapeIterator::Regions);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ layout(
|
|||
# This section lists the mask layers (drawing or derived) and their connections.
|
||||
|
||||
# Mask layers
|
||||
layer(bulk '1/0')
|
||||
layer(bulk)
|
||||
layer(nwell '1/0')
|
||||
layer(poly '3/0')
|
||||
layer(poly_lbl '3/1')
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ layout(
|
|||
# This section lists the mask layers (drawing or derived) and their connections.
|
||||
|
||||
# Mask layers
|
||||
layer(bulk '1/0')
|
||||
layer(bulk)
|
||||
layer(nwell '1/0')
|
||||
layer(poly '3/0')
|
||||
layer(poly_lbl '3/1')
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ layout(
|
|||
# This section lists the mask layers (drawing or derived) and their connections.
|
||||
|
||||
# Mask layers
|
||||
layer(bulk '1/0')
|
||||
layer(bulk)
|
||||
layer(nwell '1/0')
|
||||
layer(poly '3/0')
|
||||
layer(poly_lbl '3/1')
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ layout(
|
|||
# This section lists the mask layers (drawing or derived) and their connections.
|
||||
|
||||
# Mask layers
|
||||
layer(bulk '1/0')
|
||||
layer(bulk)
|
||||
layer(nwell '1/0')
|
||||
layer(poly '3/0')
|
||||
layer(poly_lbl '3/1')
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ layout(
|
|||
# This section lists the mask layers (drawing or derived) and their connections.
|
||||
|
||||
# Mask layers
|
||||
layer(bulk '1/0')
|
||||
layer(bulk)
|
||||
layer(nwell '1/0')
|
||||
layer(poly '3/0')
|
||||
layer(poly_lbl '3/1')
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ layout(
|
|||
# This section lists the mask layers (drawing or derived) and their connections.
|
||||
|
||||
# Mask layers
|
||||
layer(bulk '1/0')
|
||||
layer(bulk)
|
||||
layer(nwell '1/0')
|
||||
layer(poly '3/0')
|
||||
layer(poly_lbl '3/1')
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ layout(
|
|||
# This section lists the mask layers (drawing or derived) and their connections.
|
||||
|
||||
# Mask layers
|
||||
layer(bulk '1/0')
|
||||
layer(bulk)
|
||||
layer(nwell '1/0')
|
||||
layer(poly '3/0')
|
||||
layer(poly_lbl '3/1')
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ layout(
|
|||
# This section lists the mask layers (drawing or derived) and their connections.
|
||||
|
||||
# Mask layers
|
||||
layer(bulk '1/0')
|
||||
layer(bulk)
|
||||
layer(nwell '1/0')
|
||||
layer(poly '3/0')
|
||||
layer(poly_lbl '3/1')
|
||||
|
|
|
|||
Loading…
Reference in New Issue