Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Point Picking returning NaN #30

Open
mandre96 opened this issue Jun 26, 2023 · 3 comments
Open

Point Picking returning NaN #30

mandre96 opened this issue Jun 26, 2023 · 3 comments

Comments

@mandre96
Copy link

Hi! I'm trying to use the point-cloud-octree-picker, but I am having several problems in doing it. With the latest commit, when i hit the point cloud it returns a NaN. I checked the code and it seems that the hit.pIndex does not find the respective position attribute index in the PointCloudOctree.

I already tried switching back to this method of acessing
const x = values.array[3 * hit.pIndex];
const y = values.array[3 * hit.pIndex + 1];
const z = values.array[3 * hit.pIndex + 2];

    point.position = new Vector3(x, y, z).applyMatrix4(points.matrixWorld);

I have tried to reverse the code, however the pickpoint does not work properly. Any idea how I can use this feature?

@mandre96
Copy link
Author

I Jus checked and it seems that the point picking is working fine in pnext/three-loader.

@ketourneau
Copy link

We got the same problem. @mandre96 Do you find a solution ?

@mandre96
Copy link
Author

@ketourneau I had to stop using the library, I tried to fix the code and had no success. Decided to use the pnext/three-loader in our project, even tho we had to downgrade the potree converter version.

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

No branches or pull requests

2 participants