← Back to team overview

kicad-developers team mailing list archive

Re: How fast is our polygon stuff?

 

Hit testing doesn't rely only on rectangles. The rtree has to use
rectangles to get a "rough" idea of what is hit, but then an individual
item can provide override behavior (for example to test for a polygon hit).
We already do this in GerbView for example.

I havent looked at the bug in particular, but we can probably solve it by
making the text hit testing smarter.

-Jon


On Feb 15, 2018 15:35, "Jeff Young" <jeff@xxxxxxxxx> wrote:

I was looking at a bug regarding selecting a reference of a footprint which
is rotated 45º.  Since our hit-testing relies entirely on rectangles, you
can imagine that this doesn’t work very well for an elongated shape.

We could change hit-testing to polygons so we can rotate them.  If we were
to do that would we run in to performance issues?
_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp

References