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

patchkernel: optimize vertex duplicate check #184

Merged
merged 4 commits into from
Jun 3, 2021

Conversation

andrea-iob
Copy link
Member

It's faster to perform vertex duplicate checks using a std::set instead of a bitpit::kdtree. For a STL with 3 millions triangles, the time it takes to remove duplicate vertices it's reduced from 16 seconds to 11 seconds.

This optimization also affects patch partitioning: a duplicate vertex check is performed when receiving the vertices.

@andrea-iob andrea-iob force-pushed the patchkernel.optimize.vertex.duplicate.check branch from ca003c1 to 4c55799 Compare May 27, 2021 19:22
@andrea-iob andrea-iob merged commit 1dac069 into master Jun 3, 2021
@andrea-iob andrea-iob deleted the patchkernel.optimize.vertex.duplicate.check branch June 3, 2021 07:04
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