------------------------------------------------------------------------------
| 174 | |
| 175 | //------------------------------------------------------------------------------ |
| 176 | void vtkHyperTreeGridPlaneCutter::Reset() |
| 177 | { |
| 178 | // Points and Cells are created in the constructor |
| 179 | if (this->Points) |
| 180 | { |
| 181 | this->Points->Delete(); |
| 182 | } |
| 183 | this->Points = vtkPoints::New(); |
| 184 | if (this->Cells) |
| 185 | { |
| 186 | this->Cells->Delete(); |
| 187 | } |
| 188 | this->Cells = vtkCellArray::New(); |
| 189 | if (this->Centers) |
| 190 | { |
| 191 | this->Centers->Initialize(); |
| 192 | } |
| 193 | if (this->Leaves) |
| 194 | { |
| 195 | this->Leaves->Initialize(); |
| 196 | } |
| 197 | if (this->Cutter) |
| 198 | { |
| 199 | this->Cutter->SetNumberOfContours(0); |
| 200 | } |
| 201 | if (this->SelectedCells) |
| 202 | { |
| 203 | this->SelectedCells->Initialize(); |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | //------------------------------------------------------------------------------ |
| 208 | int vtkHyperTreeGridPlaneCutter::ProcessTrees(vtkHyperTreeGrid* input, vtkDataObject* outputDO) |
no test coverage detected