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

#84 improve erase xxx perf #93

Merged
merged 2 commits into from
Jul 11, 2022
Merged

#84 improve erase xxx perf #93

merged 2 commits into from
Jul 11, 2022

Conversation

artem-ogre
Copy link
Owner

@artem-ogre artem-ogre commented Jul 11, 2022

Re-written the way triangulation is finalized and triangles are removed.
This significantly speeds-up the eraseXXX methods for some extreme cases.

Triangles by vertex will not be re-calculated when doing calling erase... methods.
If necessary triangles by vertex can be calculated using the new helper function calculateTrianglesByVertex.

- Don't re-calculate triangles by vertex when finalizing triangulation
  (don't pay for what you don't use)
- If needed calculating triangles by vertex can be done with new `calculateTrianglesByVertex` helper
- Detect if triangulation was finalized and throw exceptions if it was when adding new vertices or edges
@artem-ogre artem-ogre changed the title 84 improve erase xxx perf #84 improve erase xxx perf Jul 11, 2022
@artem-ogre artem-ogre linked an issue Jul 11, 2022 that may be closed by this pull request
@artem-ogre artem-ogre merged commit d4488e8 into master Jul 11, 2022
@artem-ogre artem-ogre deleted the 84-improve-eraseXXX-perf branch July 11, 2022 10:57
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.

eraseSuperTriangle is slow
1 participant