----------------------------------------------------------------------------------------------
| 159 | |
| 160 | //---------------------------------------------------------------------------------------------- |
| 161 | void vtkHyperTreeGridFeatureEdges::RecursivelyProcess1DHTGTree(vtkHyperTreeGrid* input, |
| 162 | vtkPoints* outPoints, vtkCellArray* outCells, vtkHyperTreeGridNonOrientedGeometryCursor* cursor) |
| 163 | { |
| 164 | if (cursor->IsLeaf() && !cursor->IsMasked()) |
| 165 | { |
| 166 | auto points = this->Build1DCellPoints(cursor); |
| 167 | |
| 168 | // Add edge |
| 169 | double pt1[3] = { 0.0 }; |
| 170 | double pt2[3] = { 0.0 }; |
| 171 | points->GetPoint(0, pt1); |
| 172 | points->GetPoint(1, pt2); |
| 173 | this->InsertNewEdge(pt1, pt2, outPoints, outCells, cursor->GetGlobalNodeIndex()); |
| 174 | |
| 175 | return; |
| 176 | } |
| 177 | |
| 178 | for (unsigned int ichild = 0; ichild < cursor->GetNumberOfChildren(); ++ichild) |
| 179 | { |
| 180 | if (!cursor->IsMasked()) |
| 181 | { |
| 182 | cursor->ToChild(ichild); |
| 183 | this->RecursivelyProcess1DHTGTree(input, outPoints, outCells, cursor); |
| 184 | cursor->ToParent(); |
| 185 | } |
| 186 | } |
| 187 | } |
| 188 | |
| 189 | //---------------------------------------------------------------------------------------------- |
| 190 | void vtkHyperTreeGridFeatureEdges::RecursivelyProcess2DHTGTree(vtkHyperTreeGrid* input, |
no test coverage detected