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

Function CopyCellIdsToSendIntoBlockStructure

Parallel/DIY/vtkDIYGhostUtilities.cxx:2537–2543  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2535
2536//----------------------------------------------------------------------------
2537void CopyCellIdsToSendIntoBlockStructure(
2538 const std::set<vtkIdType>& cellIdsToSend, ::UnstructuredDataBlockStructure& blockStructure)
2539{
2540 blockStructure.CellIdsToSend->SetNumberOfIds(cellIdsToSend.size());
2541 vtkSMPTools::Transform(cellIdsToSend.cbegin(), cellIdsToSend.cend(),
2542 blockStructure.CellIdsToSend->begin(), [](vtkIdType cellId) -> vtkIdType { return cellId; });
2543}
2544
2545//----------------------------------------------------------------------------
2546template <class PointSetT>

Callers 1

Calls 9

SetNumberOfIdsMethod · 0.80
TransformFunction · 0.50
sizeMethod · 0.45
cbeginMethod · 0.45
cendMethod · 0.45
beginMethod · 0.45
GetCellTypeMethod · 0.45
SetIdMethod · 0.45

Tested by

no test coverage detected