Commit ca5b2abe authored by Etienne Schmitt's avatar Etienne Schmitt

const &

Signed-off-by: Etienne Schmitt's avatarÉtienne Schmitt <etienne.schmitt@inria.fr>
parent d611ae24
...@@ -386,7 +386,7 @@ void Volusion::displayMO() ...@@ -386,7 +386,7 @@ void Volusion::displayMO()
if(val_comboEdge==0) if(val_comboEdge==0)
{ {
for(auto vect : simul.aiguille->belonging_cells) for(const auto& vect : simul.aiguille->belonging_cells)
{ {
// m_topo_render->overdrawDart(simul.aiguille->parts_[i]->d,10.0f,1.0f,0,0); // m_topo_render->overdrawDart(simul.aiguille->parts_[i]->d,10.0f,1.0f,0,0);
for(Dart it : vect) for(Dart it : vect)
...@@ -428,7 +428,7 @@ void Volusion::displayMO() ...@@ -428,7 +428,7 @@ void Volusion::displayMO()
m_topo_render->updateData(simul.envMap_.map, simul.envMap_.position, 0.8f, 0.8f, 0.8f); m_topo_render->updateData(simul.envMap_.map, simul.envMap_.position, 0.8f, 0.8f, 0.8f);
if(val_comboEdge==0) if(val_comboEdge==0)
{ {
for(auto vect : simul.aiguille->neighbor_cells) for(const auto& vect : simul.aiguille->neighbor_cells)
{ {
// m_topo_render->overdrawDart(simul.aiguille->parts_[i]->d,10.0f,1.0f,0,0); // m_topo_render->overdrawDart(simul.aiguille->parts_[i]->d,10.0f,1.0f,0,0);
for(Dart it : vect) for(Dart it : vect)
...@@ -552,7 +552,7 @@ void Volusion::displayObj() ...@@ -552,7 +552,7 @@ void Volusion::displayObj()
for (ArticulatedObject * o : simul.objects) for (ArticulatedObject * o : simul.objects)
{ {
CGoGNout<<" size belong :"<< o->belonging_cells.size()<< " || nbseg :"<<o->nbEdges << CGoGNendl; CGoGNout<<" size belong :"<< o->belonging_cells.size()<< " || nbseg :"<<o->nbEdges << CGoGNendl;
for(auto vect : o->belonging_cells) for(const auto& vect : o->belonging_cells)
{ {
CGoGNout<<" size vector :"<< vect.size() << CGoGNendl; CGoGNout<<" size vector :"<< vect.size() << CGoGNendl;
// m_topo_render->overdrawDart(simul.aiguille->parts_[i]->d,10.0f,1.0f,0,0); // m_topo_render->overdrawDart(simul.aiguille->parts_[i]->d,10.0f,1.0f,0,0);
...@@ -592,7 +592,7 @@ void Volusion::displayObj() ...@@ -592,7 +592,7 @@ void Volusion::displayObj()
m_topo_render->updateData(simul.envMap_.map, simul.envMap_.position, 0.8f, 0.8f, 0.8f); m_topo_render->updateData(simul.envMap_.map, simul.envMap_.position, 0.8f, 0.8f, 0.8f);
for (ArticulatedObject * o : simul.objects) for (ArticulatedObject * o : simul.objects)
{ {
for(auto vect : o->neighbor_cells) for(const auto& vect : o->neighbor_cells)
{ {
// m_topo_render->overdrawDart(simul.aiguille->parts_[i]->d,10.0f,1.0f,0,0); // m_topo_render->overdrawDart(simul.aiguille->parts_[i]->d,10.0f,1.0f,0,0);
for(Dart it : vect) for(Dart it : vect)
......
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