MCPcopy Create free account
hub / github.com/OpenPathGuidingLibrary/openpgl / setToInnerNode

Method setToInnerNode

openpgl/spatial/kdtree/KDTree.h:65–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 /////////////////////////////
64
65 void setToInnerNode(const uint8_t &_splitDim, const float &_splitPos, const uint32_t &_leftChildIdx)
66 {
67 splitPosition = _splitPos;
68 splitDimAndNodeIdx = 0;
69 splitDimAndNodeIdx = (uint32_t(_splitDim) << 30);
70 splitDimAndNodeIdx = ((splitDimAndNodeIdx >> 30) << 30) | _leftChildIdx;
71
72 OPENPGL_ASSERT(_splitDim == getSplitDim());
73 OPENPGL_ASSERT(_leftChildIdx == getLeftChildIdx());
74 }
75
76 /////////////////////////////
77 // Leaf node functions

Callers 1

updateTreeNodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected