• 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. Function to check if an object is inside an object

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 14092
  • 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

Function to check if an object is inside an object

MSP032
MSP032 over 6 years ago

Hi,

Please let me know if there's a function to check if an object is inside another object.
For instance, consider the objects, 'shape1' and 'shape2' in the below figure.

In this case, the object 'shape2' is not entirely inside the object 'shape1'.
Please let me know if there's a built-in function(or the algorithm) to find the same.

Thanks,
Mallikarjun

  • Cancel
Parents
  • RK56
    RK56 over 6 years ago

    Hi,

    Are you aware of abe* functions? These are Advanced Boolean Functions which can handle these.

    -Ramakrishnan

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • MSP032
    MSP032 over 6 years ago in reply to RK56

    Thanks Ramakrishnan.

    I'll check them out. 

    Mallikarjun

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 6 years ago in reply to MSP032

    A simple way is to do shape2 ANDNOT shape1. You can do this with the abe functions, but also dbLayerAndNot or dbPointArrayAndNot.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 6 years ago in reply to MSP032

    A simple way is to do shape2 ANDNOT shape1. You can do this with the abe functions, but also dbLayerAndNot or dbPointArrayAndNot.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • MSP032
    MSP032 over 6 years ago in reply to Andrew Beckett

    Hi Andrew,

    Thanks a lot for your suggestions.

    I used the function 'dbLayerAnd' for this purpose.

    Mallikarjun

    • 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