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

Fix issue with duplicate points #589

Merged
merged 1 commit into from
Oct 3, 2022
Merged

Conversation

tobias93
Copy link
Contributor

I recently ran into an issue with a point cloud, where PotreeConvert would become stuck in the indexing phase at 100%. Basically, the symptoms are identical to issue #489.

After some debugging, it got clear that potree detected many duplicate points in the file and was trying to deduplicate them. This calls the contains(map, key) helper for every single point in the current split. This helper takes the map of distinct points by value. Having to copy the map once for every point in the current split takes so long, that it seems like PotreeConvert runs 'forever'.

After changing the signature of contains(map, key) so that it takes its parameters by reference, the problem is gone.

@m-schuetz
Copy link
Collaborator

Thanks for the PR!

@m-schuetz m-schuetz merged commit 1bcbd9e into potree:develop Oct 3, 2022
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

Successfully merging this pull request may close these issues.

2 participants