• 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. leIsPointInsideFig Bug?

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 13072
  • 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

leIsPointInsideFig Bug?

Adrian Nistor
Adrian Nistor over 14 years ago

Hi, 

I have a specific strange situation, and I do not know how to handle it. I'm using Virtuoso 6.1.4.To replicate this you can do the following in for new layout cell view:

in CIW:

 pts = list(
    list(0.0 19.2)
    list(0.0 0.0)
    list(53.25 0.0)
    list(53.25 97.7)
    list(39.25 97.7)
)

obj = dbCreatePolygon(cv() "poly" pts) ;; Create a polygon



bx = list(list(17.4 19.2)
    list(21.2 23.45)
)
r = dbCreateRect(cv() "metal1" bx) ;; Create a small rect, this is only for visual help
lowerLeftPt = lowerLeft(r~>bBox) ;; Take the lower left point of the polygon

leIsPointInsideFig(obj lowerLeftPt) ;; ~> this will return nil !! WHY ?

No move the small rect "one grid" in top or bottom direction and retry the leIsPointInsideFi, it will return t. 

Only on that horizontal line the problem appears.

 

Is this a bug?

 

Thank you,

Best Regards,

Adrian

 

  • leIsPointInsideFig_bug.PNG
  • View
  • Hide
  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    Hi Adrian,

    This looks like  a bug to me. Please file a service request. It seems to be an issue if the shape is concident with a line drawn from one of the vertices. I believe it uses some kind of scan line approach, and something is probably wrong in the code.

    As a workaround, you could use the SKILL code in Solution 11024326 . In this there is CCSpointInPolygon, and you could use CCSpointInPolygon(lowerLeftPt obj~>points) (strictly you should check using CCSpointOnBoundary() too  - see comments in the code).

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    Hi Adrian,

    This looks like  a bug to me. Please file a service request. It seems to be an issue if the shape is concident with a line drawn from one of the vertices. I believe it uses some kind of scan line approach, and something is probably wrong in the code.

    As a workaround, you could use the SKILL code in Solution 11024326 . In this there is CCSpointInPolygon, and you could use CCSpointInPolygon(lowerLeftPt obj~>points) (strictly you should check using CCSpointOnBoundary() too  - see comments in the code).

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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