8 std::vector<std::vector<Separatrix>> &separatrices)
const {
10 if(separatrices.empty())
13 std::vector<size_t> partialSizes{0};
14 for(
const auto &sep : separatrices) {
15 partialSizes.emplace_back(partialSizes.back() + sep.size());
18 separatrices[0].resize(partialSizes.back());
20#ifdef TTK_ENABLE_OPENMP
21#pragma omp parallel for num_threads(threadNumber_)
23 for(
size_t i = 1; i < separatrices.size(); ++i) {
24 for(
size_t j = 0; j < separatrices[i].size(); ++j) {
25 const auto o = partialSizes[i] + j;
27 separatrices[0][o].source_ = separatrices[i][j].source_;
28 separatrices[0][o].destination_ = separatrices[i][j].destination_;
29 separatrices[0][o].geometry_ = std::move(separatrices[i][j].geometry_);