diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2019-07-24 00:05:08 -0400 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2019-07-24 00:05:08 -0400 |
commit | 5a98729ab3cb5aeda6f3bd7288c7ee6bc59c0906 (patch) | |
tree | d2c76d31e71d1f4029ab910426a4d300366575ab /src/animate.cpp | |
parent | 492419f0ae1b32c1d4bc60997ca8eb7daba22182 (diff) | |
download | fuse_networks-5a98729ab3cb5aeda6f3bd7288c7ee6bc59c0906.tar.gz fuse_networks-5a98729ab3cb5aeda6f3bd7288c7ee6bc59c0906.tar.bz2 fuse_networks-5a98729ab3cb5aeda6f3bd7288c7ee6bc59c0906.zip |
readded spatial measuremnets only for voronoi, and only for square systems
Diffstat (limited to 'src/animate.cpp')
-rw-r--r-- | src/animate.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/animate.cpp b/src/animate.cpp index b1031dc..a7b6173 100644 --- a/src/animate.cpp +++ b/src/animate.cpp @@ -17,6 +17,7 @@ void animate::pre_fracture(const network &n) { lv = std::numeric_limits<long double>::lowest(); avalanches = {}; boost::remove_edge_if(trivial, G); + seen_guy = false; glClearColor(1.0f, 1.0f, 1.0f, 1.0f ); glLineWidth(5); @@ -135,7 +136,7 @@ void animate::bond_broken(const network& n, const current_info& cur, unsigned i) } glEnd(); glFlush(); - if (nw > 2) {std::cout << "\n"; getchar();} + if (nw > 2 && !seen_guy) {seen_guy = true; getchar();} } void animate::post_fracture(network &n) { |