• 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. How to get the union box of the selected objects ?

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 13817
  • 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 get the union box of the selected objects ?

Charley Chen
Charley Chen over 12 years ago

 Dear All  ,

 I see the command 'dbUnionBBox' , but can't launch ,

Or how to use it ( 'dbUnionBBox' ).

Thank you,

Charley

 

  • Cancel
  • skillUser
    skillUser over 12 years ago

    Hi Charley,

    This is because the command you are referring to is a C API in the ITK manual, not a SKILL API.   It should not be too hard to write, however the documentation has a general example:

    
    procedure( trBBoxUnion( bBoxList )
        let( ( llxList llyList
            urxList     uryList
            minllx      minlly
            maxurx      maxury
            )
            llxList = foreach( mapcar bBox bBoxList
                xCoord( lowerLeft( bBox )))
            llyList = foreach( mapcar bBox bBoxList
                yCoord( lowerLeft( bBox )))
            urxList = foreach( mapcar bBox bBoxList
                xCoord( upperRight( bBox )))
            uryList = foreach( mapcar bBox bBoxList
                yCoord( upperRight( bBox )))
            minllx = apply( 'min llxList )
            minlly = apply( 'min llyList )
            maxurx = apply( 'max urxList )
            maxury = apply( 'max uryList )
            list( minllx:minlly maxurx:maxury )
        ) ; let
    ) ; procedure
    

    I would recommend that a different name is used for the procedure, say CCFbBoxUnion() (Cadence CIC Forum...). This should answer your question I think.

    Best regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Charley Chen
    Charley Chen over 12 years ago

     Dear Lawrence ,

     Thank you for help .

    Charley

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Charley Chen
    Charley Chen over 12 years ago

     Dear Lawrence

    It can get the union bbox.

    But if I want to get the surrounded edge of all select objects? (e.g. polygon points)

    How can I do it ?

    Thank you.

    Charley

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Charley,

    It sounds as if you're after something like the convex hull - this was discussed in another thread.

    Regards,

    Andrew.

    • 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