Wildmeshing Toolkit
Loading...
Searching...
No Matches
orient_by_majority.hpp
1#pragma once
2
3#include <cstddef>
4#include <cstdint>
5#include <vector>
6
7namespace wmtk::utils {
8
12{
13 uint32_t a;
14 uint32_t b;
15 bool consistent;
16};
17
19{
21 std::vector<bool> turn;
22 size_t n_turned = 0;
25 size_t n_non_orientable = 0;
26};
27
38OrientationRepair orient_by_majority(
39 size_t n,
40 const std::vector<OrientationLink>& links,
41 const std::vector<double>& weight);
42
43} // namespace wmtk::utils
Definition orient_by_majority.hpp:19
std::vector< bool > turn
Per element: must it be reversed.
Definition orient_by_majority.hpp:21
size_t n_non_orientable
Definition orient_by_majority.hpp:25