mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-02 02:47:48 +02:00
Introducing iterated arrays for instances
Iterated instances are created for OASIS files using irregular repetitions in viewer mode. Reason: this way, the same drawing optimization than for iterated shape arrays can be applied. As this is a new API feature, some adjustments had to be made to incorporate them into the code.
This commit is contained in:
@@ -224,6 +224,10 @@ RdbDifferenceReceiver::produce_cell_inst (const db::CellInstArrayWithProperties
|
||||
unsigned long amax, bmax;
|
||||
if (ci.is_regular_array (a, b, amax, bmax)) {
|
||||
r += tl::sprintf (" [a=%s, b=%s, na=%ld, nb=%ld]", a.to_string (), b.to_string (), amax, bmax);
|
||||
} else if (ci.size () > 1) {
|
||||
r += " (+";
|
||||
r += tl::to_string (ci.size () - 1);
|
||||
r += " irregular placements)";
|
||||
}
|
||||
|
||||
item->add_value (r);
|
||||
|
||||
Reference in New Issue
Block a user