It looks like you're new here. If you want to get involved, click one of these buttons!
Hi everyone,
I have a question about DRC.
I'm trying to figure out how to get the nearest polygon to a layout corner.
As you can see in the picture, I'm looking to get these four polygons.
Thanks for your help.
Comments
Hi,
How about this implementation with the KLayout Python Module?
I'm not using the DRC function.
Hi @sekigawa,
Thanks for the reply.
Your solution is great. It does solve my question.
But I'm wondering if there's a way to solve this with the DRC function.
Thanks again for getting back to me.
Best regards,
JSS
@sekigawa - thanks for your nice solution as usual
And @JSS, no, there is no plain DRC solution as DRC is made for finding things in a specific distance, not the closest thing.
But DRC can be mixed with Ruby code. Inside a DRC script, you can eventually define your own functions. Like this:
Which gives this:
Please note however, that this function is slow on large cases.
Matthias
Hi @Matthias,
Thank you for your reply, it is perfect for my needs!
Cheers,
JSS