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

Function SetDataFixedCellSizeImpl

Common/DataModel/vtkCellArray.cxx:996–1003  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

994{
995template <typename T>
996void SetDataFixedCellSizeImpl(
997 vtkCellArray* cellArray, vtkIdType cellSize, vtkDataArray* connectivity, bool& success)
998{
999 vtkNew<vtkAffineArray<T>> offsets;
1000 offsets->ConstructBackend(cellSize, 0);
1001 offsets->SetNumberOfTuples((connectivity->GetNumberOfValues() / cellSize) + 1);
1002 success = cellArray->SetData(offsets, connectivity);
1003}
1004}
1005
1006//------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 3

SetNumberOfTuplesMethod · 0.45
GetNumberOfValuesMethod · 0.45
SetDataMethod · 0.45

Tested by

no test coverage detected