• 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. Is there a way to get outer points of selected polygons...

Stats

  • Locked Locked
  • Replies 14
  • Subscribers 144
  • Views 21525
  • 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

Is there a way to get outer points of selected polygons?

kbhow
kbhow over 14 years ago

Hi,

Is there any SKILL codes which able to get the outer points of selected objects?

I was trying to create a new function which may required to get the outer points of selected objects (polygon/rectangle/instances and etc). I want to get a list of points where i can use it to create a polygon which cover all selected objects.

Example, let say i have selected 10 polygons, and i want a function to return me a list of outer points of my selected object. Can someone help?

Thanks

How

  • Cancel
Parents
  • StefanSL
    StefanSL over 14 years ago

    Hi kbhow,

    the "convex hull" would look like this:

                        ___                                                        _ _ _
                      
    |_ _|                                                    /         \

             ____        ___                                               /             \

     ___|        |     |      |____                                  /                   \

    |__  ___  |      |_______|           =>                 |_ ________  |

     

    just the outer points are connected in a way that all points are inside the new
    polygon; an interesting geometrical problem, there are some algorithms available.

    Possibly you could achieve a result similar to your drawing by upsizing all shapes
    to an intermediate layer by an amount that's sufficient to close all gaps, the shapes will merge,
    then downsizing by the same amount, the outlines should look like your drawing but
    the gaps will stay closed.

    Size resp. leHiSize() will not merge the shapes,
    dbLayerSize() or "Tools - Layer generation ... GROW" should do the job.

     kind regards

    Stefan

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • StefanSL
    StefanSL over 14 years ago

    Hi kbhow,

    the "convex hull" would look like this:

                        ___                                                        _ _ _
                      
    |_ _|                                                    /         \

             ____        ___                                               /             \

     ___|        |     |      |____                                  /                   \

    |__  ___  |      |_______|           =>                 |_ ________  |

     

    just the outer points are connected in a way that all points are inside the new
    polygon; an interesting geometrical problem, there are some algorithms available.

    Possibly you could achieve a result similar to your drawing by upsizing all shapes
    to an intermediate layer by an amount that's sufficient to close all gaps, the shapes will merge,
    then downsizing by the same amount, the outlines should look like your drawing but
    the gaps will stay closed.

    Size resp. leHiSize() will not merge the shapes,
    dbLayerSize() or "Tools - Layer generation ... GROW" should do the job.

     kind regards

    Stefan

     

     

    • 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