heitzmann / gdstk

Gdstk (GDSII Tool Kit) is a C++/Python library for creation and manipulation of GDSII and OASIS files.
https://heitzmann.github.io/gdstk/
Boost Software License 1.0
337 stars 84 forks source link

How to simply calculate the coordinates of the graph in a certain sub-cell in the top cell? #258

Closed tjl0209 closed 3 months ago

tjl0209 commented 3 months ago

In the design of the semiconductor industry, we need to extract multiple coordinates of certain cells containing mark in the top cell (we know that these marks are included in the top cell, but they may be multi-level). This is very important for the subsequent manufacturing. Does gdstk have a way to achieve this function simply?

frankxu-omni commented 3 months ago

Is this what you want? top_cell.get_labels() top_cell.get_polygons()

tjl0209 commented 3 months ago

Is this what you want? top_cell.get_labels() top_cell.get_polygons() 微信截图_20240702213332 Thank you for your reply! Although this doesn't seem to be what I want. I used a diagram to simply elaborate my requirement.