KLayout / klayout

KLayout Main Sources
http://www.klayout.org
GNU General Public License v3.0
743 stars 192 forks source link

RecursiveInstanceIterator cell_index #1749

Closed frankxu-omni closed 2 weeks ago

frankxu-omni commented 2 weeks ago

I have nested.oas looks like this. hiearchy

code: code

ouput: output

I wonder why cell indexes are not matched.

I attached test case below. iter_cell_index.zip

Kazzz-S commented 2 weeks ago

My understanding is as follows. I've slightly modified the code.

gh1749-slide-1 gh1749-slide-2 gh1749-slide-3

frankxu-omni commented 2 weeks ago

Hi Kazunari, Your explanation is clear. I see now. I was confused by "current instance sits in". That really means its parent cell. Good graphical demo. I like that. Thanks, -Frank