summaryrefslogtreecommitdiff
path: root/lib/include
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2018-12-20 12:20:19 -0500
committerJaron Kent-Dobias <jaron@kent-dobias.com>2018-12-20 12:20:19 -0500
commit09200a607661f739782a966807d31345485e2c41 (patch)
treeb459bd995c986c87959ffd7ae99c68f9939e2009 /lib/include
parentb1b18ae49b0d22d3fbd5146eb6416c8b9e4dd62c (diff)
downloadfuse_networks-09200a607661f739782a966807d31345485e2c41.tar.gz
fuse_networks-09200a607661f739782a966807d31345485e2c41.tar.bz2
fuse_networks-09200a607661f739782a966807d31345485e2c41.zip
added animation example, and did many fixes to the voronoi system
Diffstat (limited to 'lib/include')
-rw-r--r--lib/include/graph.hpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/include/graph.hpp b/lib/include/graph.hpp
index 75d54f4..d746ddd 100644
--- a/lib/include/graph.hpp
+++ b/lib/include/graph.hpp
@@ -4,8 +4,11 @@
#include <cmath>
#include <vector>
#include <array>
-#include <map>
+#include <unordered_map>
#include <random>
+#include <list>
+#include <exception>
+
class graph {
public:
@@ -16,9 +19,13 @@ class graph {
typedef struct vertex {
coordinate r;
+ std::vector<coordinate> polygon;
} vertex;
- typedef std::array<unsigned int, 2> edge;
+ typedef struct edge {
+ std::array<unsigned int, 2> v;
+ coordinate r;
+ } edge;
coordinate L;