Fixing a bug with hinting coordinates on one-way streets.
This commit is contained in:
parent
a0a71d6e05
commit
3712868831
@ -73,7 +73,7 @@ inline std::ostream& operator<<(std::ostream &out, const PhantomNodes & pn){
|
|||||||
}
|
}
|
||||||
|
|
||||||
inline std::ostream& operator<<(std::ostream &out, const PhantomNode & pn){
|
inline std::ostream& operator<<(std::ostream &out, const PhantomNode & pn){
|
||||||
|
out << "node: " << pn.edgeBasedNode << ", name: " << pn.nodeBasedEdgeNameID << ", w1: " << pn.weight1 << ", w2: " << pn.weight2 << ", ratio: " << pn.ratio << ", loc: " << pn.location;
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -340,13 +340,13 @@ public:
|
|||||||
_RetrievePackedPathFromHeap(_forwardHeap, _backwardHeap, middle, packedPath);
|
_RetrievePackedPathFromHeap(_forwardHeap, _backwardHeap, middle, packedPath);
|
||||||
|
|
||||||
//Setting weights to correspond with that of the actual chosen path
|
//Setting weights to correspond with that of the actual chosen path
|
||||||
if(packedPath[0] == phantomNodes.startPhantom.edgeBasedNode && phantomNodes.startPhantom.isBidirected()) {
|
// if(packedPath[0] == phantomNodes.startPhantom.edgeBasedNode && phantomNodes.startPhantom.isBidirected()) {
|
||||||
// INFO("Setting weight1=" << phantomNodes.startPhantom.weight1 << " to that of weight2=" << phantomNodes.startPhantom.weight2);
|
// INFO("Setting weight1=" << phantomNodes.startPhantom.weight1 << " to that of weight2=" << phantomNodes.startPhantom.weight2);
|
||||||
phantomNodes.startPhantom.weight1 = phantomNodes.startPhantom.weight2;
|
// phantomNodes.startPhantom.weight1 = phantomNodes.startPhantom.weight2;
|
||||||
} else {
|
// } else {
|
||||||
// INFO("Setting weight2=" << phantomNodes.startPhantom.weight2 << " to that of weight1=" << phantomNodes.startPhantom.weight1);
|
// INFO("Setting weight2=" << phantomNodes.startPhantom.weight2 << " to that of weight1=" << phantomNodes.startPhantom.weight1);
|
||||||
phantomNodes.startPhantom.weight2 = phantomNodes.startPhantom.weight1;
|
// phantomNodes.startPhantom.weight2 = phantomNodes.startPhantom.weight1;
|
||||||
}
|
// }
|
||||||
// std::cout << "0: ";
|
// std::cout << "0: ";
|
||||||
// for(unsigned i = 0; i < packedPath.size(); ++i)
|
// for(unsigned i = 0; i < packedPath.size(); ++i)
|
||||||
// std::cout << packedPath[i] << " ";
|
// std::cout << packedPath[i] << " ";
|
||||||
|
Loading…
Reference in New Issue
Block a user