summaryrefslogtreecommitdiff
path: root/rbmp.hpp
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2022-10-10 20:11:28 +0200
committerJaron Kent-Dobias <jaron@kent-dobias.com>2022-10-10 20:11:28 +0200
commit721260982551ec8ba51b9e7b9419031313aa0de0 (patch)
tree3b2c8fa19db7f5e071bc74a80d1476e81b47070d /rbmp.hpp
parent21127b705b985faac67110a3a2143c056a54c638 (diff)
downloadcode-721260982551ec8ba51b9e7b9419031313aa0de0.tar.gz
code-721260982551ec8ba51b9e7b9419031313aa0de0.tar.bz2
code-721260982551ec8ba51b9e7b9419031313aa0de0.zip
Stopped precomputing the faces to save a lot of memory and waste almost no time.
Diffstat (limited to 'rbmp.hpp')
-rw-r--r--rbmp.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/rbmp.hpp b/rbmp.hpp
index 571fb05..02ca5ad 100644
--- a/rbmp.hpp
+++ b/rbmp.hpp
@@ -11,6 +11,9 @@
using Rng = randutils::random_generator<pcg32>;
+
+class Graph {
+public:
class Edge;
class HalfEdge;
@@ -78,9 +81,6 @@ public:
blue.addEdge(halfedges[1]);
}
};
-
-class Graph {
-public:
std::vector<Vertex> vertices;
std::vector<Edge> edges;
@@ -101,6 +101,6 @@ public:
}
};
-bool edgeMatched(PerfectMatching& pm, const Edge& e) {
+bool edgeMatched(PerfectMatching& pm, const Graph::Edge& e) {
return e.halfedges[0].getTail().index == pm.GetMatch(e.halfedges[0].getHead().index);
}