mirror of https://github.com/KLayout/klayout.git
Changing default "is_merged" status for Edges and Region to false.
This was a problem with universal DRC which does not specifically set the merged status. Furthermore, the default for DeepRegion and DeepEdges was "false" already and now is aligned.
This commit is contained in:
parent
c700d2ed97
commit
75d686a63f
|
|
@ -82,7 +82,7 @@ void FlatEdges::invalidate_cache ()
|
|||
|
||||
void FlatEdges::init ()
|
||||
{
|
||||
m_is_merged = true;
|
||||
m_is_merged = false;
|
||||
m_merged_edges_valid = false;
|
||||
}
|
||||
|
||||
|
|
@ -321,9 +321,7 @@ const db::RecursiveShapeIterator *FlatEdges::iter () const
|
|||
void
|
||||
FlatEdges::do_insert (const db::Edge &edge)
|
||||
{
|
||||
if (! empty ()) {
|
||||
m_is_merged = false;
|
||||
}
|
||||
m_is_merged = empty ();
|
||||
|
||||
mp_edges->insert (edge);
|
||||
invalidate_cache ();
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ void FlatRegion::invalidate_cache ()
|
|||
|
||||
void FlatRegion::init ()
|
||||
{
|
||||
m_is_merged = true;
|
||||
m_is_merged = false;
|
||||
m_merged_polygons_valid = false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -270,7 +270,7 @@ OriginalLayerEdges::less (const Edges &other) const
|
|||
void
|
||||
OriginalLayerEdges::init ()
|
||||
{
|
||||
m_is_merged = true;
|
||||
m_is_merged = false;
|
||||
m_merged_edges_valid = false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -382,7 +382,7 @@ OriginalLayerRegion::less (const Region &other) const
|
|||
void
|
||||
OriginalLayerRegion::init ()
|
||||
{
|
||||
m_is_merged = true;
|
||||
m_is_merged = false;
|
||||
m_merged_polygons_valid = false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1318,3 +1318,13 @@ TEST(54_issue1011)
|
|||
run_test (_this, "54", false);
|
||||
}
|
||||
|
||||
TEST(55_drccount)
|
||||
{
|
||||
run_test (_this, "55", false);
|
||||
}
|
||||
|
||||
TEST(55d_drccount)
|
||||
{
|
||||
run_test (_this, "55", true);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,20 @@
|
|||
|
||||
source $drc_test_source
|
||||
target $drc_test_target
|
||||
|
||||
if $drc_test_deep
|
||||
deep
|
||||
end
|
||||
|
||||
licon = input(66, 44)
|
||||
|
||||
licon.output(66, 44)
|
||||
|
||||
licon_cluster = licon.sized(0.2).sized(-0.2)
|
||||
|
||||
single = licon_cluster.drc(secondary(licon).count == 1)
|
||||
single.sized(0.1).output(100, 0)
|
||||
|
||||
single = licon_cluster.drc(if_any(secondary(licon).count == 1))
|
||||
single.sized(0.1).output(101, 0)
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue