- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Is there a way to iterate over all leaf nodes (leaf nodes only) in the BVH tree to access some parameters (such as size, id1, id2, etc)?
I'm trying to write a function that loops over leaf nodes in the tree and extracts some properties of these nodes, but kinda lost so far.
any hints and directions are greatly appreciated.
Thank you!
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have a look at this function:
check what it does to collect statistics by traversing the tree.
You cannot loop torugh the triangle4 array directly, it might contain unused, uninitialized items in the middle.
Cheers,
Max
float BVH4::computeStatistics(nodeId_t nodeID, float ap)
check what it does to collect statistics by traversing the tree.
You cannot loop torugh the triangle4 array directly, it might contain unused, uninitialized items in the middle.
Cheers,
Max

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page