MCPcopy Create free account
hub / github.com/CesiumGS/cesium-native / findChildNode

Method findChildNode

CesiumGeometry/src/QuadtreeAvailability.cpp:539–551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537}
538
539AvailabilityNode* QuadtreeAvailability::findChildNode(
540 const QuadtreeTileID& tileID,
541 AvailabilityNode* pParentNode) const {
542
543 std::optional<uint32_t> childIndex =
544 this->findChildNodeIndex(tileID, pParentNode);
545
546 if (!childIndex || *childIndex >= pParentNode->childNodes.size()) {
547 return nullptr;
548 }
549
550 return pParentNode->childNodes[*childIndex].get();
551}
552
553} // namespace CesiumGeometry

Callers

nothing calls this directly

Calls 3

findChildNodeIndexMethod · 0.95
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected