------------------------------------------------------------------------------
| 1100 | |
| 1101 | //------------------------------------------------------------------------------ |
| 1102 | void 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 | //------------------------------------------------------------------------------ |
no test coverage detected