| 190 | } |
| 191 | |
| 192 | int vtkCellGridToUnstructuredGrid::RequestData( |
| 193 | vtkInformation* vtkNotUsed(request), vtkInformationVector** inInfo, vtkInformationVector* ouInfo) |
| 194 | { |
| 195 | auto* input = vtkCellGrid::GetData(inInfo[0]); |
| 196 | auto* output = vtkUnstructuredGrid::GetData(ouInfo); |
| 197 | if (!input) |
| 198 | { |
| 199 | vtkWarningMacro("Empty input."); |
| 200 | return 1; |
| 201 | } |
| 202 | if (!output) |
| 203 | { |
| 204 | vtkErrorMacro("Empty output."); |
| 205 | return 0; |
| 206 | } |
| 207 | |
| 208 | output->Initialize(); |
| 209 | this->Request->Input = input; |
| 210 | this->Request->Output = output; |
| 211 | // Run the cell-center query on the request. |
| 212 | if (!input->Query(this->Request)) |
| 213 | { |
| 214 | vtkErrorMacro("Input failed to respond to query."); |
| 215 | return 0; |
| 216 | } |
| 217 | |
| 218 | return 1; |
| 219 | } |
| 220 | |
| 221 | VTK_ABI_NAMESPACE_END |
nothing calls this directly
no test coverage detected