MCPcopy Create free account
hub / github.com/Kitware/VTK / ExtractUnstructuredGrid

Method ExtractUnstructuredGrid

Filters/ParallelImaging/vtkExtractPiece.cxx:234–246  ·  view source on GitHub ↗

=============================================================================

Source from the content-addressed store, hash-verified

232
233//=============================================================================
234void 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//=============================================================================
249void vtkExtractPiece::PrintSelf(ostream& os, vtkIndent indent)

Callers 1

RequestDataMethod · 0.95

Calls 7

UpdatePieceMethod · 0.80
DeleteMethod · 0.65
NewFunction · 0.50
SetInputDataMethod · 0.45
ShallowCopyMethod · 0.45
GetOutputMethod · 0.45
SetDataSetMethod · 0.45

Tested by

no test coverage detected