geometry changes/fixes/new features
new grid walkers + fixes new test-cases worked on step/and turn detection android offline-data-reader worked on vap-grouping
This commit is contained in:
@@ -43,6 +43,9 @@ public:
|
||||
gp << "set cbrange[0.5:1.5]\n";
|
||||
gp << "set palette gray negative\n";
|
||||
|
||||
gp << "set xlabel 'x'\n";
|
||||
gp << "set ylabel 'y'\n";
|
||||
|
||||
//gp << "set hidden3d front\n";
|
||||
|
||||
splot.add(&nodes); nodes.setPointSize(0.5);
|
||||
@@ -72,13 +75,14 @@ public:
|
||||
template <typename T> Plot& addEdges(Grid<T>& g) {
|
||||
|
||||
// prevent adding edges twice
|
||||
std::set<size_t> done;
|
||||
std::set<std::string> done;
|
||||
|
||||
for (T& n1 : g) {
|
||||
for (const T& n2 : g.neighbors(n1)) {
|
||||
const size_t uid1 = g.getUID(n1);
|
||||
const size_t uid2 = g.getUID(n2);
|
||||
size_t edge = uid1+uid2;//std::max(uid1,uid2) << 32 | std::min(uid1,uid2);
|
||||
//size_t edge = uid1+uid2;
|
||||
std::string edge = std::to_string(std::max(uid1,uid2)) + std::to_string(std::min(uid1,uid2));
|
||||
if (done.find(edge) == done.end()) {
|
||||
K::GnuplotPoint3 p1(n1.x_cm, n1.y_cm, n1.z_cm);
|
||||
K::GnuplotPoint3 p2(n2.x_cm, n2.y_cm, n2.z_cm);
|
||||
|
||||
Reference in New Issue
Block a user