------------------------------------------------------------------------------
| 325 | |
| 326 | //------------------------------------------------------------------------------ |
| 327 | int vtkRandomAttributeGenerator::ProcessDataSet(vtkDataSet* input, vtkDataSet* output) |
| 328 | { |
| 329 | vtkIdType numPts = input->GetNumberOfPoints(); |
| 330 | vtkIdType numCells = input->GetNumberOfCells(); |
| 331 | |
| 332 | output->CopyStructure(input); |
| 333 | output->CopyAttributes(input); |
| 334 | |
| 335 | if (numPts >= 1) |
| 336 | { |
| 337 | vtkPointData* outputPD = output->GetPointData(); |
| 338 | this->GeneratePointData(outputPD, numPts); |
| 339 | } |
| 340 | |
| 341 | if (numCells >= 1) |
| 342 | { |
| 343 | vtkCellData* outputCD = output->GetCellData(); |
| 344 | this->GenerateCellData(outputCD, numCells); |
| 345 | } |
| 346 | |
| 347 | vtkFieldData* outputFD = output->GetFieldData(); |
| 348 | this->GenerateFieldData(outputFD); |
| 349 | |
| 350 | return 1; |
| 351 | } |
| 352 | |
| 353 | //------------------------------------------------------------------------------ |
| 354 | int vtkRandomAttributeGenerator::ProcessHTG(vtkHyperTreeGrid* input, vtkHyperTreeGrid* output) |
no test coverage detected