DRC: polygon area check

edited March 2018 in Ruby Scripting
Hello Matthias,

Do you know if it is possible to check for a polygon with a null area?
I mean, one of its dimensions being zero?

I tried the function layer.with_area(0), but the null-area polygon is not recognized even by the functions layer.edges or layer.output.
Although I can see this polygon as two collapsed parallel edges.

Best regards,
Uiara

Comments

  • edited November -1

    Here is a way I use it:

    POLY.enclosing(GATE, 0.1, projection).polygons.without_area(0).output("PO.d POLY_enc_GATE", "PO.d : Min. Poly extention Gate : 0.1um")
    

    Regards,
    Laurent

  • edited November -1

    Hi all,

    I think that such polygons get removed in merge semantics. But they are kept in "raw" mode. So I think this is how you can check this:

    input(10, 0).raw.with_area(0.0)
    

    Matthias

  • edited November -1
    Thank you very much Mathias and Laurent!
Sign In or Register to comment.