------------------------------------------------------------------------------
| 114 | |
| 115 | //------------------------------------------------------------------------------ |
| 116 | void vtkXMLUnstructuredGridReader::SetupOutputData() |
| 117 | { |
| 118 | this->Superclass::SetupOutputData(); |
| 119 | |
| 120 | vtkUnstructuredGrid* output = vtkUnstructuredGrid::SafeDownCast(this->GetCurrentOutput()); |
| 121 | |
| 122 | // Setup the output's cell arrays. |
| 123 | vtkNew<vtkUnsignedCharArray> cellTypes; |
| 124 | cellTypes->SetNumberOfTuples(this->GetNumberOfCells()); |
| 125 | cellTypes->FillValue(VTK_EMPTY_CELL); |
| 126 | vtkNew<vtkCellArray> outCells; |
| 127 | |
| 128 | output->SetCells(cellTypes, outCells); |
| 129 | } |
| 130 | |
| 131 | //------------------------------------------------------------------------------ |
| 132 | int vtkXMLUnstructuredGridReader::ReadPiece(vtkXMLDataElement* ePiece) |
nothing calls this directly
no test coverage detected