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

Method BuildTreeHierarchy

Common/ExecutionModel/vtkSphereTree.cxx:1102–1121  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1100
1101//------------------------------------------------------------------------------
1102void vtkSphereTree::BuildTreeHierarchy(vtkDataSet* input)
1103{
1104 if (input->GetDataObjectType() == VTK_STRUCTURED_GRID)
1105 {
1106 vtkSphereTree::BuildStructuredHierarchy(vtkStructuredGrid::SafeDownCast(input), this->TreePtr);
1107 }
1108
1109 else if (input->GetDataObjectType() == VTK_UNSTRUCTURED_GRID)
1110 {
1111 vtkSphereTree::BuildUnstructuredHierarchy(
1112 vtkUnstructuredGrid::SafeDownCast(input), this->TreePtr);
1113 }
1114
1115 else // default hierarchy
1116 {
1117 vtkSphereTree::BuildUnstructuredHierarchy(input, this->TreePtr);
1118 }
1119
1120 this->BuildTime.Modified();
1121}
1122
1123//================Specialized methods for structured grids====================
1124//------------------------------------------------------------------------------

Callers 1

BuildMethod · 0.95

Calls 2

GetDataObjectTypeMethod · 0.80
ModifiedMethod · 0.45

Tested by

no test coverage detected