| 461 | } |
| 462 | |
| 463 | bool OctreeAvailability::addLoadedSubtree( |
| 464 | AvailabilityNode* pNode, |
| 465 | AvailabilitySubtree&& newSubtree) noexcept { |
| 466 | if (!pNode || pNode->subtree) { |
| 467 | return false; |
| 468 | } |
| 469 | |
| 470 | pNode->setLoadedSubtree( |
| 471 | std::move(newSubtree), |
| 472 | this->_maximumChildrenSubtrees); |
| 473 | |
| 474 | return true; |
| 475 | } |
| 476 | |
| 477 | std::optional<uint32_t> OctreeAvailability::findChildNodeIndex( |
| 478 | const OctreeTileID& tileID, |
no test coverage detected