11 #include <unordered_map> 44 Vec4d weights = Vec4d::Zero();
49 State state = State::REMOVED;
63 return cantor(symCantor(std::get<0>(k), std::get<1>(k)), std::get<2>(k));
75 std::pair<int, int> a1 = { std::get<0>(a), std::get<1>(a) };
76 if (a1.second < a1.first)
78 std::swap(a1.first, a1.second);
80 std::pair<int, int> b1 = { std::get<0>(b), std::get<1>(b) };
81 if (b1.second < b1.first)
83 std::swap(b1.first, b1.second);
85 return (a1.first == b1.first) && (a1.second == b1.second) && (std::get<2>(a) == std::get<2>(b));
Accompanying data stored with a puncture. No usage within Needle structure.
The entity and tissue id should be reversible.
The puncture itself is composed of a state and extra non-essential user data.
The entity and tissue id should be reversible.
std::tuple< int, int, int > PunctureId
Punctures are identified via three ints. The needle id, the puncturable id, and a local id that allow...