Problem with point picking on .obj mesh

If you are allergic to bug trackers, you can post here any remarks, issues and potential bugs you encounter
Post Reply
tomas_123
Posts: 4
Joined: Fri Feb 14, 2020 10:15 am

Problem with point picking on .obj mesh

Post by tomas_123 »

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.
Attachments
mesh_group.png
mesh_group.png (417.99 KiB) Viewed 4035 times
incorrect_pick.png
incorrect_pick.png (535.53 KiB) Viewed 4035 times
mesh_group.png
mesh_group.png (417.99 KiB) Viewed 4036 times
incorrect_pick.png
incorrect_pick.png (535.53 KiB) Viewed 4036 times
correct_pick.png
correct_pick.png (563.13 KiB) Viewed 4037 times
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Problem with point picking on .obj mesh

Post by daniel »

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
tomas_123
Posts: 4
Joined: Fri Feb 14, 2020 10:15 am

Re: Problem with point picking on .obj mesh

Post by tomas_123 »

I pulled the latest code from git yesterday. Also tested on the official installation build v2.12 alpha.
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Problem with point picking on .obj mesh

Post by daniel »

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
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Problem with point picking on .obj mesh

Post by daniel »

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)
Daniel, CloudCompare admin
tomas_123
Posts: 4
Joined: Fri Feb 14, 2020 10:15 am

Re: Problem with point picking on .obj mesh

Post by tomas_123 »

It seems to be working fine now. Thanks for the update.
Post Reply