Hello,
I am using the picking hub in my code to pick a point on a .obj mesh. The .obj mesh is quite large and is split into multiple groups.
When my model is zoomed out so that a whole mesh group is visible the picking works fine. But when the model is more zoomed in (so that only part of the mesh group is in the view) the point is picked incorrectly on the edge of the model view. Attached are few figures for illustration.
Do you know what could be causing this behavior?
Regards,
T.
PS: I have tested a different .obj model without any subgroups and still experiencing same behavior.
Problem with point picking on .obj mesh
Problem with point picking on .obj mesh
- Attachments
-
- mesh_group.png (417.99 KiB) Viewed 4070 times
-
- incorrect_pick.png (535.53 KiB) Viewed 4070 times
-
- mesh_group.png (417.99 KiB) Viewed 4071 times
-
- incorrect_pick.png (535.53 KiB) Viewed 4071 times
-
- correct_pick.png (563.13 KiB) Viewed 4072 times
Re: Problem with point picking on .obj mesh
Which version are you using? Because there was a bug like that some time ago but it was fixed in the 2.12 version (= the master branch)
Daniel, CloudCompare admin
Re: Problem with point picking on .obj mesh
I pulled the latest code from git yesterday. Also tested on the official installation build v2.12 alpha.
Re: Problem with point picking on .obj mesh
Ah too bad. I tested on my side, and I realize that the 2.11.3 version doesn't have this bug. I think we fixed it in this version, and we probably forgot to apply the patch to the v2.12 version. Do you confirm it works with 2.11.3 on your side?
Daniel, CloudCompare admin
Re: Problem with point picking on .obj mesh
Ok, I confirm that a commit was missing. I cherry picked it to the master branch. It should fix this issue normally.
(I also updated the 2.12.alpha version online)
(I also updated the 2.12.alpha version online)
Daniel, CloudCompare admin
Re: Problem with point picking on .obj mesh
It seems to be working fine now. Thanks for the update.