Création d'un compte pour un collaborateur extérieur au laboratoire depuis l'intranet ICube : https://intranet.icube.unistra.fr/fr/labs/member/profile

Commit f75eb2f8 authored by Pierre Kraemer's avatar Pierre Kraemer
Browse files

SocialAgents -> ajout test particules dans leurs faces..

parent 6a960392
...@@ -148,7 +148,7 @@ void generateSmallCity(typename PFP::MAP& map, EMBV& position, DartMarker& close ...@@ -148,7 +148,7 @@ void generateSmallCity(typename PFP::MAP& map, EMBV& position, DartMarker& close
// sideSize *= 0.2f; // sideSize *= 0.2f;
unsigned int nbBuilding=1000; unsigned int nbBuilding=1000;
float height = sideSize/2.0f; float height = sideSize/2.0f;
unsigned int side = 3; unsigned int side = 18;
generateGrid<PFP,EMBV>(map,position,side,side,sideSize,closeMark); generateGrid<PFP,EMBV>(map,position,side,side,sideSize,closeMark);
Dart dEnd = map.end(); Dart dEnd = map.end();
......
...@@ -339,6 +339,22 @@ void EnvMap::addNeighborAgents(PFP::AGENTS agentsFrom,PFP::AGENTS agentsTo) ...@@ -339,6 +339,22 @@ void EnvMap::addNeighborAgents(PFP::AGENTS agentsFrom,PFP::AGENTS agentsTo)
void EnvMap::updateMap() void EnvMap::updateMap()
{ {
// simplifyFaces(); // simplifyFaces();
CellMarker m(map, FACE_CELL) ;
for(Dart d = map.begin(); d != map.end(); map.next(d))
{
if(!m.isMarked(d))
{
m.mark(d) ;
std::vector<Agent*>& agents = agentvect[d] ;
for(std::vector<Agent*>::iterator it = agents.begin(); it != agents.end(); ++it)
{
if(!map.sameFace(d, (*it)->part->d))
std::cout << "aaaaaaaaaaaaaaaaaaa" << std::endl ;
}
}
}
subdivideFaces() ; subdivideFaces() ;
map.setCurrentLevel(map.getMaxLevel()) ; map.setCurrentLevel(map.getMaxLevel()) ;
} }
......
Markdown is supported
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