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

Method operator()

Common/DataModel/vtkPolyData.cxx:264–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262 // vtkCellArray::Visit entry point:
263 template <class OffsetsT, class ConnectivityT>
264 void operator()(OffsetsT* offsets, ConnectivityT* conn, vtkPoints* points, vtkIdType cellId,
265 double bounds[6]) const
266 {
267 auto offsetsRange = GetRange(offsets);
268 const auto& beginOffset = offsetsRange[cellId];
269 const auto& endOffset = offsetsRange[cellId + 1];
270 const vtkIdType numPts = static_cast<vtkIdType>(endOffset - beginOffset);
271
272 const auto pointIds = GetRange(conn).begin() + beginOffset;
273 vtkBoundingBox::ComputeBounds(points, pointIds, numPts, bounds);
274 }
275};
276} // anonymous
277

Callers

nothing calls this directly

Calls 3

ComputeBoundsFunction · 0.70
GetRangeFunction · 0.50
beginMethod · 0.45

Tested by

no test coverage detected