MCPcopy Create free account
hub / github.com/Kitware/VTK / operator()

Method operator()

Common/DataModel/vtkUnstructuredGrid.cxx:400–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398 // vtkCellArray::Visit entry point:
399 template <class OffsetsT, class ConnectivityT>
400 void operator()(OffsetsT* offsets, ConnectivityT* conn, vtkPoints* points, vtkIdType cellId,
401 double bounds[6]) const
402 {
403 auto offsetsRange = GetRange(offsets);
404 const auto& beginOffset = offsetsRange[cellId];
405 const auto& endOffset = offsetsRange[cellId + 1];
406 const vtkIdType numPts = static_cast<vtkIdType>(endOffset - beginOffset);
407
408 const auto pointIds = GetRange(conn).begin() + beginOffset;
409 vtkBoundingBox::ComputeBounds(points, pointIds, numPts, bounds);
410 }
411};
412} // anonymous
413

Callers

nothing calls this directly

Calls 3

ComputeBoundsFunction · 0.70
GetRangeFunction · 0.50
beginMethod · 0.45

Tested by

no test coverage detected