Commit 4d7589e3 authored by Thomas's avatar Thomas
Browse files

social agents -> list : push pop en place

parent 69cdd5fc
......@@ -148,7 +148,7 @@ void generateSmallCity(typename PFP::MAP& map, EMBV& position, DartMarker& close
// sideSize *= 0.2f;
unsigned int nbBuilding=1000;
float height = sideSize/2.0f;
unsigned int side = 5;
unsigned int side = 100;
generateGrid<PFP,EMBV>(map,position,side,side,sideSize,closeMark);
Dart dEnd = map.end();
......
......@@ -303,10 +303,10 @@ void EnvMap::getAllFacesOfAgents(Dart d)
void EnvMap::pushFaceToSubdivide(Dart d)
{
for(std::list<Dart>::iterator it = filledFaces.begin(); it != filledFaces.end() ; ++it) {
if(map.sameFace(d,*it))
return;
}
// for(std::list<Dart>::iterator it = filledFaces.begin(); it != filledFaces.end() ; ++it) {
// if(map.sameFace(d,*it))
// return;
// }
filledFaces.push_back(d);
}
......@@ -408,6 +408,8 @@ void EnvMap::subdivideFaces()
}
}
}
// else if(agentvect[d].size()==0)
// itF = filledFaces.erase(itF);
}
// for(unsigned int i=0;i<8;++i) {
......
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