From 3b6dac7471a6a05d305794ed4d85e97f35be146d Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 28 May 2022 19:00:53 +0200 Subject: [PATCH] rogueviz::som:: fixup bounded -> closed_manifold --- rogueviz/som/embeddings.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rogueviz/som/embeddings.cpp b/rogueviz/som/embeddings.cpp index 97c41113..cc266d0c 100644 --- a/rogueviz/som/embeddings.cpp +++ b/rogueviz/som/embeddings.cpp @@ -144,11 +144,11 @@ void mark_signposts(bool full, const vector& ac) { println(hlog, "marking signposts"); signposts.clear(); int maxd = 0; - if(!bounded) + if(!closed_manifold) for(cell *c: ac) maxd = max(celldist(c), maxd); for(cell *c: ac) if(full || c->type != 6) - if(bounded || celldist(c) == maxd) + if(closed_manifold || celldist(c) == maxd) signposts.push_back(c); } @@ -159,7 +159,7 @@ void mark_signposts_subg(int a, int b, const vector& ac) { println(hlog, "marking bitrunc signposts"); signposts.clear(); int maxd = 0; - if(!bounded) + if(!closed_manifold) for(cell *c: ac) maxd = max(celldist(c), maxd); for(cell *c: ac) { auto li = gp::get_local_info(c); @@ -221,7 +221,7 @@ void get_coordinates(kohvec& v, cell *c, cell *c0) { for(int i=0; i ", v); } - else if(euclid && bounded && WDIM == 2) { + else if(euclid && closed_manifold && WDIM == 2) { columns = 4; alloc(v); rug::clifford_torus ct; @@ -243,7 +243,7 @@ void get_coordinates(kohvec& v, cell *c, cell *c0) { for(int i=0; i<4; i++) v[i] = h[i]; } - else if(euclid && bounded && WDIM == 3) { + else if(euclid && closed_manifold && WDIM == 3) { columns = 6; alloc(v); using namespace euc;