Commit 9bb3ddea authored by Federico Ciuffardi's avatar Federico Ciuffardi
Browse files

Simplifica trabaja con un unico puntos perteneciente a un gen a minima...

Simplifica trabaja con un unico puntos perteneciente a un gen a minima distancia para ser consistente con la del informe
parent 9bcdd82d
......@@ -133,7 +133,7 @@ void DistMap::processLower(Pos p) {
open.push(DistPos(distMap[pN].distance, pN));
} else {
if (minD == distMap[pN].distance){
accum(distMap[pN].sources, minDSources);
/* accum(distMap[pN].sources, minDSources); // linea omitida para permitr solo un gen mas cercano */
if(!is_elem(pN,modified)){
modified.insert(pN);
......
......@@ -163,7 +163,7 @@ void Gvd::updateBase(PosSet &candidates) {
inNarrowPassage = inNarrowPassage && (*distMap)[pN].distance <= (*distMap)[p].distance + 0.5;
}
gridGvd[p] = ( ( (inNarrowPassage && neighbors == 2) || neighbors == 1) && existsNonAdjacent(distMap->basisPoints(p)) ) ||
existsNonAdjacent((*distMap)[p].sources) ||
( !(*distMap)[p].pseudoSources.empty() && (*distMap)[p].distance == p.distanceTo(*(*distMap)[p].pseudoSources.begin()) )|| // linea modificada para soportar que solo se tiene un genrador a minima distancia
disconnectsOnRemoval(p, gridGvd);
break;
}
......
......@@ -371,6 +371,7 @@ inline boost::tuple<Float, PosSet> closests(Pos p, PosSet pSet) {
minDPs.clear();
minDPs.insert(p1);
} else if (d == minD) {
minDPs.clear(); // linea agregada para permitr solo un gen mas cercano
minDPs.insert(p1);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment