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

Function GetRange

Filters/Sources/vtkPartitionedDataSetCollectionSource.cxx:52–65  ·  view source on GitHub ↗

returns [start, end].

Source from the content-addressed store, hash-verified

50
51// returns [start, end].
52std::pair<int, int> GetRange(int rank, const std::vector<int>& counts)
53{
54 std::pair<int, int> result(0, counts[0]);
55 if (rank == 0)
56 {
57 return result;
58 }
59 for (int cc = 1; cc <= rank; ++cc)
60 {
61 result.first = result.second;
62 result.second += counts[cc];
63 }
64 return result;
65}
66
67template <typename ArrayType>
68void OffsetPoints(ArrayType* array, const vtkVector3d& delta)

Callers 1

RequestDataMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected