Traversing the AABB tree uses a fixed-length array of length 32 to simulate a stack. How does it ensure that the stack will not overflow? #3350
Answered
by
Fedr
BlackantHermit
asked this question in
Q&A
-
For example, this code located in MRMeshProject.cpp:
|
Beta Was this translation helpful? Give feedback.
Answered by
Fedr
Sep 13, 2024
Replies: 1 comment
-
Thanks for the question. Currently we can have up to 2^31 faces in a mesh. And since all our trees are balanced, their depth is always at most 32. Projection can be split on two stages:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
BlackantHermit
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the question. Currently we can have up to 2^31 faces in a mesh. And since all our trees are balanced, their depth is always at most 32.
Projection can be split on two stages: