------------------------------------------------------------------------------
| 352 | |
| 353 | //------------------------------------------------------------------------------ |
| 354 | int vtkRandomAttributeGenerator::ProcessHTG(vtkHyperTreeGrid* input, vtkHyperTreeGrid* output) |
| 355 | { |
| 356 | vtkIdType numCells = input->GetNumberOfCells(); |
| 357 | |
| 358 | output->CopyStructure(input); |
| 359 | |
| 360 | // No point data in HTGs |
| 361 | output->GetCellData()->PassData(input->GetCellData()); |
| 362 | output->GetFieldData()->PassData(input->GetFieldData()); |
| 363 | |
| 364 | if (numCells >= 1) |
| 365 | { |
| 366 | vtkCellData* outputCD = output->GetCellData(); |
| 367 | this->GenerateCellData(outputCD, numCells); |
| 368 | } |
| 369 | |
| 370 | vtkFieldData* outputFD = output->GetFieldData(); |
| 371 | this->GenerateFieldData(outputFD); |
| 372 | |
| 373 | return 1; |
| 374 | } |
| 375 | |
| 376 | //------------------------------------------------------------------------------ |
| 377 | int vtkRandomAttributeGenerator::RequestData(vtkInformation* vtkNotUsed(request), |
no test coverage detected