Commit d611ae24 authored by Thomas Pitiot 's avatar Thomas Pitiot

reparaired some fails

parent 08ab54eb
......@@ -595,14 +595,14 @@ bool EnvMap::subdivideVolume(Dart dglobal, bool OneLevelDifference)
// map.check();
map.setCurrentLevel(map.getMaxLevel()) ;
const ARETES& oldobst(RegisteredEdges[dglobal]) ;
const ARETES oldobst(RegisteredEdges[dglobal]) ;
for (Segment * o : oldobst)
{
this->popSegment(o) ;
}
ARETES& oldNeighborObst(RegisteredNeighborEdges[old]) ;
ARETES oldNeighborObst(RegisteredNeighborEdges[old]) ;
for (Segment * o : oldNeighborObst)
{
......@@ -611,16 +611,16 @@ bool EnvMap::subdivideVolume(Dart dglobal, bool OneLevelDifference)
removeElementFromVector(o->nid->neighbor_cells[o->index],old);
o->nid->removeGeneralNeighbor (old);
}
oldNeighborObst.clear();
RegisteredNeighborEdges[old].clear();
const TRIANGLES& oldTrian(RegisteredTriangles[dglobal]) ;
const TRIANGLES oldTrian(RegisteredTriangles[dglobal]) ;
for (Triangle * o : oldTrian)
{
this->popTriangle(o) ;
}
TRIANGLES& oldTrianNeighbor(RegisteredNeighborTriangles[old]) ;
TRIANGLES oldTrianNeighbor(RegisteredNeighborTriangles[old]) ;
for (Triangle * o : oldTrianNeighbor)
{
......@@ -629,7 +629,7 @@ bool EnvMap::subdivideVolume(Dart dglobal, bool OneLevelDifference)
removeElementFromVector(o->surf->neighbor_cells[o->indexTri],old);
o->surf->removeGeneralNeighbor (old);
}
oldTrianNeighbor.clear();
RegisteredNeighborTriangles[old].clear();
const std::chrono::time_point<std::chrono::system_clock> endPop = std::chrono::system_clock::now();
duration_pop = endPop - startPop;
......
......@@ -551,8 +551,10 @@ void Volusion::displayObj()
m_topo_render->updateData(simul.envMap_.map, simul.envMap_.position, 0.8f, 0.8f, 0.8f);
for (ArticulatedObject * o : simul.objects)
{
CGoGNout<<" size belong :"<< o->belonging_cells.size()<< " || nbseg :"<<o->nbEdges << CGoGNendl;
for(auto vect : o->belonging_cells)
{
CGoGNout<<" size vector :"<< vect.size() << CGoGNendl;
// m_topo_render->overdrawDart(simul.aiguille->parts_[i]->d,10.0f,1.0f,0,0);
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