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

Method RecursivelyProcess1DHTGTree

Filters/HyperTree/vtkHyperTreeGridFeatureEdges.cxx:161–187  ·  view source on GitHub ↗

----------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

159
160//----------------------------------------------------------------------------------------------
161void 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//----------------------------------------------------------------------------------------------
190void vtkHyperTreeGridFeatureEdges::RecursivelyProcess2DHTGTree(vtkHyperTreeGrid* input,

Callers 1

Process1DHTGMethod · 0.95

Calls 9

Build1DCellPointsMethod · 0.95
InsertNewEdgeMethod · 0.95
IsLeafMethod · 0.45
IsMaskedMethod · 0.45
GetPointMethod · 0.45
GetGlobalNodeIndexMethod · 0.45
GetNumberOfChildrenMethod · 0.45
ToChildMethod · 0.45
ToParentMethod · 0.45

Tested by

no test coverage detected