Skip to content

Octree node splitting from a prescribed list of nodes. #7350

Answered by JacksonCampolattaro
tdinar asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @tdinar,

The current Orthtree API has some flaws, one of which is that Node_access::split(node) doesn't actually distribute the points between child nodes. This functionality was made public for unit testing. It shouldn't be causing precondition violations, but it can produce incorrect results.

Another issue which might be causing your problem is that nodes contain a manually allocated pointer to their data, so the "Node" type is actually only a thin handle. It might be worth trying node.is_null() before you add each node to list_nodes, to see at which point they become invalid.

I'm working to make the Orthtree API a little more ergonomic in a new branch, but it may be some time before…

Replies: 7 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by tdinar
Comment options

You must be logged in to vote
1 reply
@JacksonCampolattaro
Comment options

Comment options

You must be logged in to vote
1 reply
@JacksonCampolattaro
Comment options

Comment options

You must be logged in to vote
1 reply
@JacksonCampolattaro
Comment options

Comment options

You must be logged in to vote
2 replies
@JacksonCampolattaro
Comment options

@sloriot
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants