ID: | 870 |
From: | Evan Foss <ev...@gmail.com> |
Date: | Sun, 10 Sep 2017 16:44:31 +0000 |
Subject: | Re: [pcb-rnd] bugreport - impossible selection of off grid trace |
in-reply-to: | 868 from ge...@igor2.repo.hu |
replies: | 871 from ge...@igor2.repo.hu |
On Sun, Sep 10, 2017 at 3:07 AM, <gedau@igor2.repo.hu> wrote: > Hi Evan, > > On Sat, 9 Sep 2017, Evan Foss wrote: > >> Hi fellow pcb-rnd'rs, >> >> I was doing some testing of pcb-rnd with the gtk2 gl hid using rubber >> band modes (both of them) and I drew the attached trace. It was part >> of a longer single trace on the page. I removed the rest of it for >> simplicity. This one horizontal segment can not be selected. Endpoint >> selection of this trace still works as does window selection but >> clicking on it fails. I am running r11297. > > > I managed to reproduce it in all 3 HIDs. Unfortunately it is not a bug. > > If you want to select an object by a click, you must have the (center of > the) crosshair be on the object. In case of a line, this means the crosshair > must be within the boundaries of the lin width. > > This is all calculated in core, while rendering happens in various HIDs. To > overcome possible different rounding as on "which pixel the line really > uses", there's a certain tolerance, specified in pixels, called the > pcb_pixel_slop. > > What you have in your example is a horizontal line that is between two rows > of grid in a way that no part of the line overlaps with any grid row. > > This means you can not officially select it by trying to click on the line, > because you can not place the crosshair on the line because the crosshair > will snap to grid rows and will never overlap the line. > > The only reason you can still select it sometime using this method is that > at certain zoom levels, pcb_pixel_slop says "well, on-screen, it's close > enough, let's accept it". > > You can test it by zooming in to give the engine more pixels; you won't be > able toe select it. Then start zooming out, step by step, and try select > click again: at some point it will stop working. That's when your grid > points get too far away from the edge of the line for pcb_pixel_slop. > > The reason you can select by endpoint is probably because you have snap to > off-grid points of line on and it simply snaps at the endpoint even if it is > between grid points. Ok but how did the line end up there in the first place? I was using the rubber band mode that rubber band keeps middle line dir. > Official solution: if you have objects in between grid poitns, either select > it using selection boxes or refine your grid or depend on the > object-point-snap settings. Could it be changed so that holding down the ctrl or alt key while using rubber band keeps middle line dir snaps to the grid? > HTH, > > Igor2 Thanks for the clarification, Evan -- Home http://evanfoss.googlepages.com/ Work http://forge.abcd.harvard.edu/gf/project/epl_engineering/wiki/ -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v2 mQENBFYy4RYBCAC183JomLtbdAlcKiaPDoVHq52LDmVmH75aiEc69m7YxDt54/ai VtYCAobbGVIyn3Hlz3uhF6LnPl/6Lm1VdnCfpwu3KQhCO6ds10ow2C30X4ohCqOd hCVg5C+ILmQkEffFrFODy3ji+PYTF4pADvHCWsTMv0hf0llwFOJsBCK6cl02IffE JPqy4PjM1nZ9HpzT84JBaG/4OGvTZ8SQ2yFUl265jagvygPTf88H1xpZHH1r8dB1 stjUHLmPH8AOyDgKxFchgGeDc3p/vJtgDDIXAFfDXG0NSRovLmtaQdGxe47Zf/go bXiEM7YL2WqQe5zfEA919JxkEwlDKYniOSVzABEBAAG0N0V2YW4gRm9zcyAoVGhp cyBpcyBteSBwdWJsaWMga2V5LikgPGV2YW5mb3NzQGdtYWlsLmNvbT6JATkEEwEC ACMFAlYy4RYCGwMHCwkIBwMCAQYVCAIJCgsEFgIDAQIeAQIXgAAKCRCIpQTcE8nN bbBaCACAm8pU5lG1ev2Fsw68Axtcl57SJrYieqX96c3YuYH9JpqMqJRnd9nDKw9X tQuvuH7tUk0VbOaDqReOYJVI/4c5wb9AaOFp6K2DUcupq6XhgXpvz3HzoPwjAdIj XuQzdRUx5+innTJrSkGuBYW/CZ2zqEx4xfLlq4rO0hoTUMR8QVp2cCrkw6BT0m86 APIw/ZnjoxM8IEzr7MxfRIg3qpzrZk28rmhx+k78Jyk61UhwcCPGIm/pjUopTwYJ 3YBdRB2cYD2aN7A1JVf5cRmSQYooHBGpH0kYvomGk97PKqypVuJ7OpG9xM58wUcC qUVt9hKlePLzP8csYjt8onqI7qIIuQENBFYy4RYBCADlH8spG3WkCx62vB5mr5Z0 SCDd/RcyA4A5y5EOj5KurQkrSWpgi9Ho1yKruMJ6blQR2qkc66KqH9pnXDm/ZI1M K/wdW3ngETxBmXoozzFMT89aEWIVR5/PFodWK1elekE9iJxACuR98Zg2QttTD3x8 A9w8VEyMLOXcDTrPFpHegMKswFBg5iuMulAdXAoGejWTI3n+qKFpabHm2Lfs6wjk 5rjucpTdeFK6UeWF1xAvNxXibuu5BlGwv53930qIXRwO/Gn2Rh5DXWxKU2fEIme/ xgQQmIsDeUoWbfybdjw/x7Q0LW4mINiLDQcGHHRQKFIxbAJCT3USPLGh5xwE9/Er ABEBAAGJAR8EGAECAAkFAlYy4RYCGwwACgkQiKUE3BPJzW0uYAf9Hf30n8tM3mR2 Zo6ESE0ivgdgjaJtAWrBUx7JzAzPjBnBOlNnu5Y9lVEqetvUPH6e3PvaHYUuaUU8 0HwxuKBW9nUprgV6uIu1DZmlcp+SxpbuCy7RDpNocRLNWWFMaYYzznmTgfnTgD4D gCq8Mf1mcfrluTkOAo+QNqbMfl1GISClopRqxVuAo59ewgMnFujwgd8w12BwWl24 CzqOs5HqcUslePj+LzcjSNgVCklYwKl+0dsb/fctMOCtHodwqm2CBJ+zydvNmYkD fxda/J91Z1xrah5ec++FL0L4vs+jCiIWJeupJFKlr1hCMZiiGH7W554loK5l4jv3 EY347EidAw== =Ta4p -----END PGP PUBLIC KEY BLOCK-----
Reply subtree:
870 Re: [pcb-rnd] bugreport - impossible selection of off grid trace from Evan Foss <ev...@gmail.com>
871 Re: [pcb-rnd] bugreport - impossible selection of off grid trace from ge...@igor2.repo.hu