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

Function DeepCopyCells

Parallel/DIY/vtkDIYGhostUtilities.cxx:3661–3674  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

3659
3660//----------------------------------------------------------------------------
3661void DeepCopyCells(vtkCellArray* inputCells, vtkCellArray* outputCells,
3662 vtkIdList* cellRedirectionMap, vtkIdList* pointRedirectionMap)
3663{
3664 DeepCopyCellsWorker worker;
3665 if (!vtkArrayDispatch::Dispatch2ByArrayWithSameValueType<vtkArrayDispatch::OffsetsArrays,
3666 vtkArrayDispatch::ConnectivityArrays>::Execute(inputCells->GetOffsetsArray(),
3667 inputCells->GetConnectivityArray(), worker, outputCells->GetOffsetsArray(),
3668 outputCells->GetConnectivityArray(), cellRedirectionMap, pointRedirectionMap))
3669 {
3670 worker(inputCells->GetOffsetsArray(), inputCells->GetConnectivityArray(),
3671 outputCells->GetOffsetsArray(), outputCells->GetConnectivityArray(), cellRedirectionMap,
3672 pointRedirectionMap);
3673 }
3674}
3675
3676//----------------------------------------------------------------------------
3677struct DeepCopyPolyhedronWorker

Callers 2

CloneUnstructuredGridFunction · 0.85
ClonePolyDataFunction · 0.85

Calls 2

GetConnectivityArrayMethod · 0.80
ExecuteFunction · 0.50

Tested by

no test coverage detected