Skip to content
Snippets Groups Projects
Commit f4ba04f0 authored by Mark Winter's avatar Mark Winter
Browse files

Fix for best-edge searching (actually searches best edges now)

parent 59ef7ab1
Branches
No related tags found
No related merge requests found
......@@ -121,6 +121,9 @@ CellID bidirDepthFirstSearch(threadDB* thread_db, CSourcePath partialPath, int t
minDist = getHullDistance(thread_db, leftID, startCID);
}
}
if ( minID >= 0 )
bestLGIdx = bidirDepthFirstSearch(thread_db, path_append_front(partialPath, minID), t, bestLGIdx);
}
}
......@@ -146,6 +149,9 @@ CellID bidirDepthFirstSearch(threadDB* thread_db, CSourcePath partialPath, int t
minDist = getHullDistance(thread_db, rightID, endCID);
}
}
if (minID >= 0)
bestLGIdx = bidirDepthFirstSearch(thread_db, path_append_back(partialPath, minID), t, bestLGIdx);
}
}
......
......@@ -43,7 +43,9 @@ public:
startIdx = src_index()+1;
endIdx = src_index()+1;
indices = {CellID(-1)};
for ( auto& idx : indices )
idx = CellID(-1);
indices[startIdx] = nextIdx;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment