MCPcopy Create free account
hub / github.com/Kitware/VTK / SetChildren

Method SetChildren

Common/DataModel/vtkCellTreeLocator.cxx:138–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 this->RightMin = b[1];
137 }
138 void SetChildren(const T& left)
139 {
140 // In index 2 LSBs (Least Significant Bits) store the dimension. MSBs store the position
141 this->Index = this->GetDimension() | (left << 2);
142 }
143 bool IsNode() const
144 {
145 return (this->Index & 3) != 3; // For a leaf 2 LSBs in index is 3

Callers 1

ReduceMethod · 0.80

Calls 1

GetDimensionMethod · 0.95

Tested by

no test coverage detected