=============================================================================
| 232 | |
| 233 | //============================================================================= |
| 234 | void vtkExtractPiece::ExtractUnstructuredGrid(vtkUnstructuredGrid* uGrid, |
| 235 | vtkCompositeDataSet* output, int piece, int numberOfPieces, int ghostLevel, |
| 236 | vtkCompositeDataIterator* iter) |
| 237 | { |
| 238 | vtkExtractUnstructuredGridPiece* extractUG = vtkExtractUnstructuredGridPiece::New(); |
| 239 | extractUG->SetInputData(uGrid); |
| 240 | extractUG->UpdatePiece(piece, numberOfPieces, ghostLevel); |
| 241 | vtkUnstructuredGrid* extractOutput = vtkUnstructuredGrid::New(); |
| 242 | extractOutput->ShallowCopy(extractUG->GetOutput()); |
| 243 | output->SetDataSet(iter, extractOutput); |
| 244 | extractUG->Delete(); |
| 245 | extractOutput->Delete(); |
| 246 | } |
| 247 | |
| 248 | //============================================================================= |
| 249 | void vtkExtractPiece::PrintSelf(ostream& os, vtkIndent indent) |
no test coverage detected