• 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. acute angle

Stats

  • State Verified Answer
  • Replies 10
  • Subscribers 163
  • Views 1665
  • Members are here 0
More Content

acute angle

masamasa
masamasa 2 months ago

hello:

 

is there a way to detect a location with acute angle shapes?

 

the edit property has a setting for the acute angle to avoid having acute angle.

 

but i would like to find the acute angle location on the deisgn that was made by our customer and has many acute angles.

 

regards

masa

  • Cancel
  • Sign in to reply
Parents
  • MY202510076911
    0 MY202510076911 17 days ago

    Okay, interesting question! I'm wondering if you've considered using image processing libraries that can identify edges and calculate angles from vectors? Perhaps a combination of edge detection and the Pythagorean theorem could help you isolate those acute angles. This reminds me of navigating Poptropica islands! Avoiding obstacles is crucial. Have you explored custom filters within your editing software to highlight these regions?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • DavidJHutchins
    0 DavidJHutchins 16 days ago in reply to MY202510076911

    I wrote some skill code to find these acute angles & add DRC flags

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Xiaome8
    0 Xiaome8 10 days ago in reply to DavidJHutchins

    Hi David,

    Would you help to share this code? thanks!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • DavidJHutchins
    0 DavidJHutchins 9 days ago in reply to Xiaome8

    I am now under contract with Arm Limited and cannot share any code

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Xiaome8
    0 Xiaome8 9 days ago in reply to DavidJHutchins

    Noted,thanks any way.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • DavidJHutchins
    0 DavidJHutchins 8 days ago in reply to Xiaome8

    below is the peusdo-code for the overall process:

    foreach(shape ListOfShapes
       (ShpPoly = car((axlPolyFromDB shape)))
       if(shape->fillet then
           axlAddSelectBox(shape->bBox)
           foreach(seg axlGetSelSet()
               (ExpPoly = car(axlPolyFromDB( seg )))
               (ShpPoly =  car(axlPolyOperation(ShpPoly ExpPoly 'OR)))
           )
           (segs = convertArc2segs(ShpPoly))
       else
           axlAddSelectBox(shape->bBox)
           foreach(via axlGetSelSet()
               when((((caadr(via->bBox)-caar(via->bBox))/2)) > Radius
                   (Radius = ViaSize)
               )
           )
           (ExpPoly = car(axlPolyExpand(ShpPoly Radius 'NONE)))
           axlAddSelectBox(ExpPoly->bBox)
           foreach(via axlGetSelSet()
               unless(axlGeoPointInShape(via->xy shape nil)
                   (ExpPoly = car(axlPolyFromDB( via )))
                   (ShpPoly =  car(axlPolyOperation(ShpPoly ExpPoly 'OR)))
               )
           )
           (segs = convertArc2segs(ShpPoly))
       )
       foreach(seg segs
           (angle = axlGeoAngleBetweenLines(seg Lastseg))
           when(angle > 90
               axlDBCreateExternalDRC()
           )
           (Lastseg = seg)
       )
       (angle = axlGeoAngleBetweenLines(car(seg) Lastseg))
       when(angle > 90
           axlDBCreateExternalDRC()
       )
    )

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • DavidJHutchins
    0 DavidJHutchins 8 days ago in reply to Xiaome8

    below is the peusdo-code for the overall process:

    foreach(shape ListOfShapes
       (ShpPoly = car((axlPolyFromDB shape)))
       if(shape->fillet then
           axlAddSelectBox(shape->bBox)
           foreach(seg axlGetSelSet()
               (ExpPoly = car(axlPolyFromDB( seg )))
               (ShpPoly =  car(axlPolyOperation(ShpPoly ExpPoly 'OR)))
           )
           (segs = convertArc2segs(ShpPoly))
       else
           axlAddSelectBox(shape->bBox)
           foreach(via axlGetSelSet()
               when((((caadr(via->bBox)-caar(via->bBox))/2)) > Radius
                   (Radius = ViaSize)
               )
           )
           (ExpPoly = car(axlPolyExpand(ShpPoly Radius 'NONE)))
           axlAddSelectBox(ExpPoly->bBox)
           foreach(via axlGetSelSet()
               unless(axlGeoPointInShape(via->xy shape nil)
                   (ExpPoly = car(axlPolyFromDB( via )))
                   (ShpPoly =  car(axlPolyOperation(ShpPoly ExpPoly 'OR)))
               )
           )
           (segs = convertArc2segs(ShpPoly))
       )
       foreach(seg segs
           (angle = axlGeoAngleBetweenLines(seg Lastseg))
           when(angle > 90
               axlDBCreateExternalDRC()
           )
           (Lastseg = seg)
       )
       (angle = axlGeoAngleBetweenLines(car(seg) Lastseg))
       when(angle > 90
           axlDBCreateExternalDRC()
       )
    )

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
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