Home > Community > Forums > Custom IC SKILL > How to get the union box of the selected objects ?

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 How to get the union box of the selected objects ? 

Last post Thu, Mar 28 2013 2:45 AM by Andrew Beckett. 4 replies.
Started by Charley Chen 27 Mar 2013 08:32 PM. Topic has 4 replies and 729 views
Page 1 of 1 (5 items)
Sort Posts:
  • Wed, Mar 27 2013 8:32 PM

    How to get the union box of the selected objects ? Reply

     Dear All  ,

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

    Or how to use it ( 'dbUnionBBox' ).

    Thank you,

    Charley

     

    • Post Points: 20
  • Wed, Mar 27 2013 8:58 PM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,587
    • Points 15,900
    Re: How to get the union box of the selected objects ? Reply

    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.

    • Post Points: 20
  • Wed, Mar 27 2013 10:03 PM

    Re: How to get the union box of the selected objects ? Reply

     Dear Lawrence ,

     Thank you for help .

    Charley

    • Post Points: 5
  • Wed, Mar 27 2013 10:09 PM

    Re: How to get the union box of the selected objects ? Reply

     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

     

    • Post Points: 20
  • Thu, Mar 28 2013 2:45 AM

    Re: How to get the union box of the selected objects ? Reply

    Charley,

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

    Regards,

    Andrew.

    • Post Points: 5
Page 1 of 1 (5 items)
Sort Posts:
Started by Charley Chen at 27 Mar 2013 08:32 PM. Topic has 4 replies.