Nothing Special   »   [go: up one dir, main page]

Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

gdspy.inside only checks for inside the bbox #228

Open
ChenkaiMao97 opened this issue Apr 21, 2023 · 1 comment
Open

gdspy.inside only checks for inside the bbox #228

ChenkaiMao97 opened this issue Apr 21, 2023 · 1 comment

Comments

@ChenkaiMao97
Copy link

Hi, I have tried to use gdsy.inside, and I also read snippets of clipper.cpp, it looks like the inside function only checks if the point is inside the bbox of the polygon(s). Is it true and do you have any API for checking if the point is inside the polygon but not its bbox? Thanks

@heitzmann
Copy link
Owner

The bounding box check is just the first check for a fast response: if the point is outside the bounding box, it cannot be inside the polygon. After that, the more expensive polygon check is performed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants