9 vtkUnstructuredGrid *
const vtu0,
10 vtkUnstructuredGrid *
const vtu1) {
12 if(matchings.empty()) {
16 vtkNew<vtkIntArray> matchingIds0{};
17 matchingIds0->SetName(
"MatchingIdentifier");
18 matchingIds0->SetNumberOfComponents(1);
19 matchingIds0->SetNumberOfTuples(vtu0->GetNumberOfCells());
20 vtu0->GetCellData()->AddArray(matchingIds0);
22 vtkNew<vtkIntArray> matchingIds1{};
23 matchingIds1->SetName(
"MatchingIdentifier");
24 matchingIds1->SetNumberOfComponents(1);
25 matchingIds1->SetNumberOfTuples(vtu1->GetNumberOfCells());
26 vtu1->GetCellData()->AddArray(matchingIds1);
29 matchingIds0->Fill(-1);
30 matchingIds1->Fill(-1);
33 for(
size_t i = 0; i < matchings.size(); ++i) {
34 const auto &t = matchings[i];
35 matchingIds0->SetTuple1(std::get<0>(t), i);
36 matchingIds1->SetTuple1(std::get<1>(t), i);