Home
  • Products
  • Solutions
  • Support
  • Company

This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  • Products
  • Solutions
  • Support
  • Company
Community RAVEL DRC Programming for IC Packaging and… How to measure max Y axis of a polygon

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 23
  • Views 16739
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to measure max Y axis of a polygon

Rian
Rian over 9 years ago

Is there a way to get the max and min Y coordinates of a polygon so we can just subtract them to get the Y-axis height (in microns for us).

Here's a picture. We called the layer_andnot function to get just the tip as show here:

  • Cancel
  • Bjoern L
    Bjoern L over 9 years ago

    Hi Rian,

    the following two derivation expressions will give you the min and max y coordinates respectively: (ycoordinate (leftlower_point (box p))) and (ycoordinate (rightupper_point (box p))), where p is the polygon. However, if the actual measure sought is not strictly in the y direction, but rather "orthogonal to the edge" or "towards the outside", then it might be better to find a measure which is independant of orientation. For instance, if you have the edge that delineates the discussed polygon (in read above), you could find a vector perpendicular to it (using rotate), then find the size of the polygon or its box along this vector. Another alternative is to rotate the polygon itself (rotate_polygon) to line up with e.g. the y axis, where the angle is decided by the orientation of the edge, then find its extent in e.g. the y direction.

    Regards,

    Björn

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Rian
    Rian over 9 years ago
    You the man!!! Thanks so much.
    Code is just like you said:
    (distance leftlower_point(box(mTipOfSlot)), leftupper_point(box(mTipOfSlot)) )
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information