50 typedef unsigned long long Key;
51 std::map<Key, int> edgeMap;
53 mIndices.push_back(
new std::vector<int>);
54 std::vector<int>& refinedIndices = *
mIndices.back();
56 for (
int i = 0;
i <
end;
i += 3) {
59 for (
int k = 0;
k < 3; ++
k) {
65 Key edgeKey = Key(e0) | (Key(e1) << 32);
66 std::map<Key, int>::iterator it = edgeMap.find(edgeKey);
67 if (it == edgeMap.end()) {
69 edgeMap[edgeKey] = ids1[
k];
74 refinedIndices.push_back(ids0[0]);
75 refinedIndices.push_back(ids1[0]);
76 refinedIndices.push_back(ids1[2]);
77 refinedIndices.push_back(ids0[1]);
78 refinedIndices.push_back(ids1[1]);
79 refinedIndices.push_back(ids1[0]);
80 refinedIndices.push_back(ids0[2]);
81 refinedIndices.push_back(ids1[2]);
82 refinedIndices.push_back(ids1[1]);
83 refinedIndices.push_back(ids1[0]);
84 refinedIndices.push_back(ids1[1]);
85 refinedIndices.push_back(ids1[2]);
static constexpr lastp1_t end
Definition: IndexedViewHelper.h:79
EIGEN_BLAS_FUNC() swap(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy)
Definition: level1_impl.h:117