• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. Find the center of a polygon segment

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 14807
  • 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

Find the center of a polygon segment

psill000
psill000 over 8 years ago

Methodology of how to find the center of a segment on a polygon.

I want to center objects, vias or labels, on a particular part of a polygon; for example, a "C", "H" or "Z" shaped polygon.

1) Should I chopped the object to find the polygons segments or is there a better method?

2) How or where to chop the polygon, should I do the edits in the cellview or a scratch view.

Paul

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    Paul,

    A couple of ways you could do this. One is to use dbLayerTile - although that will generate the tiled objects as shapes in the cellView. Another is to use the new "abe" functions in IC617 - I'd suggest you use something more recent than (say) IC617 ISR4 as there were a few challenges with the API in early ISRs. Something like this would do the job:

    cv=geGetEditCellView()
    shapesToTile=setof(fig geGetSelSet() fig~>isShape)
    abeInit(cv)
    abeShapes=abeLayerFromShapes(shapesToTile)
    iter=abeTileIterator(abeShapes)
    while(tile=iter->next
       dbCreateLabel(cv "text" centerBox(tile->bbox) "X" "centerCenter" "R0" "stick" 0.1)
    )

    This places a small "X" at the centre of each tile from the selected objects. The abe functions can even read hierarchical shapes - they're quite powerful. Note the "abe" means Advanced Boolean Engine - nothing to do with my name ;-)

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    Paul,

    A couple of ways you could do this. One is to use dbLayerTile - although that will generate the tiled objects as shapes in the cellView. Another is to use the new "abe" functions in IC617 - I'd suggest you use something more recent than (say) IC617 ISR4 as there were a few challenges with the API in early ISRs. Something like this would do the job:

    cv=geGetEditCellView()
    shapesToTile=setof(fig geGetSelSet() fig~>isShape)
    abeInit(cv)
    abeShapes=abeLayerFromShapes(shapesToTile)
    iter=abeTileIterator(abeShapes)
    while(tile=iter->next
       dbCreateLabel(cv "text" centerBox(tile->bbox) "X" "centerCenter" "R0" "stick" 0.1)
    )

    This places a small "X" at the centre of each tile from the selected objects. The abe functions can even read hierarchical shapes - they're quite powerful. Note the "abe" means Advanced Boolean Engine - nothing to do with my name ;-)

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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