BoundaryConstraint.cpp 571 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "BoundaryConstraint.h"
#include "DartConstraint.h"

void BoundaryConstraint::add_to_queue(std::vector<std::unique_ptr<InsertionQueuer>> &queue, std::vector<DartConstraint> &constraints, size_t dart_constraint) {
    if (UniformDiscretization) {
        for (size_t dc : DartConstraints) {
            size_t dart = constraints[dc].dart();
            queue.push_back(std::make_unique<MidpointQueuer>(dart));
        }
    } else {
        size_t dart = constraints[dart_constraint].dart();
        queue.push_back(std::make_unique<MidpointQueuer>(dart));
    }
}