• 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. Allegro X PCB Editor
  3. Function to detect if a given bBox is entirely covered by...

Stats

  • Replies 1
  • Subscribers 159
  • Views 12142
  • Members are here 0
More Content

Function to detect if a given bBox is entirely covered by metal

Kodela
Kodela over 8 years ago

Hi,

any existing functions which is able to detect if a given bBox (on a given visible layer) is entirely covered by metal (can be Via pad, pin pad, shape, clines)?

e.g given a bBox, the function can detect the voids within the bBox and return a nil, else return a t.

 

if not, any existing basic function that i can start with to write such a function?

  • Sign in to reply
  • Cancel
  • B Bruekers
    B Bruekers over 8 years ago
    There is no such existing function. You need to create a polygon as large as your bBox.
    Then get from each copper element the polygons (axlDBGetPad, axlDBGetShapes and then pull each shape through axlPolyFromDB) and then do an axlPolyOperation( bbox_poly list_of_cu_poly 'ANDNOT). This subtracts all CU poly's from the bbox poly. If any poly remains then you have voids.
    Perhaps you need also to do something with the voids in shapes, axlPolyFromHole.

    If you have many elements it is wise to do a pre-selection (axlAddSelectBox) of the via's, cline(segs) and shapes.
    Polygon operation can take some time if you pass a lot of items.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Cadence Guidelines

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