=============================================================================
| 545 | |
| 546 | //============================================================================= |
| 547 | std::set<unsigned int> GetDatasetIndices(vtkDataAssembly* assembly, std::set<std::string> paths) |
| 548 | { |
| 549 | if (assembly && assembly->GetRootNodeName()) |
| 550 | { |
| 551 | std::vector<int> indices; |
| 552 | for (const auto& path : paths) |
| 553 | { |
| 554 | const auto idx = assembly->GetFirstNodeByPath(path.c_str()); |
| 555 | if (idx != -1) |
| 556 | { |
| 557 | indices.push_back(idx); |
| 558 | } |
| 559 | } |
| 560 | const auto vector = assembly->GetDataSetIndices(indices); |
| 561 | return std::set<unsigned int>{ vector.begin(), vector.end() }; |
| 562 | } |
| 563 | return {}; |
| 564 | } |
| 565 | |
| 566 | //============================================================================= |
| 567 | std::map<unsigned char, int64_t> GetElementCounts( |
no test coverage detected