Skip to content

Commit 1f71ea0

Browse files
committed
Minor modificiations
1 parent 5c43999 commit 1f71ea0

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

src/Core/Geom/CommandEditGeom.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ void CommandEditGeom::internalExecute()
7070
std::vector<GeomEntity*> mod_entities = getKeepedEntities();
7171
std::vector<GeomEntity*> mov_entities = getMovedEntities();
7272
std::vector<GeomEntity*>& rem_entities = getRemovedEntities();
73-
std::map<GeomEntity*,std::vector<GeomEntity*> >& rep_entities = getReplacedEntities();
7473

7574
for(int i=0;i<new_entities.size();i++){
7675
GeomEntity* ge = new_entities[i];
@@ -103,6 +102,7 @@ void CommandEditGeom::internalExecute()
103102
}
104103

105104
#ifdef _DEBUG2
105+
std::map<GeomEntity*,std::vector<GeomEntity*> >& rep_entities = getReplacedEntities();
106106
for (std::map<GeomEntity*,std::vector<GeomEntity*> >::iterator iter1 = rep_entities.begin();
107107
iter1!=rep_entities.end(); ++iter1){
108108
std::cerr<<"Remplace "<<iter1->first->getName()<<" par";

src/Core/Topo/Block.cpp

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3320,17 +3320,14 @@ unsigned long Block::getNbInternalMeshingNodes()
33203320
else {
33213321
unsigned short res = m_mesh_data->nodes().size();
33223322

3323-
std::vector<Vertex*> vertices = getVertices();
3324-
for (uint i=0;i<vertices.size(); i++)
3325-
res -= vertices[i]->getNbInternalMeshingNodes();
3323+
for (Vertex* v : getVertices())
3324+
res -= v->getNbInternalMeshingNodes();
33263325

3327-
std::vector<CoEdge*> coedges = getCoEdges();
3328-
for (uint i=0;i<coedges.size(); i++)
3329-
res -= coedges[i]->getNbInternalMeshingNodes();
3326+
for (CoEdge* ce : getCoEdges())
3327+
res -= ce->getNbInternalMeshingNodes();
33303328

3331-
std::vector<CoFace*> cofaces = getCoFaces();
3332-
for (uint i=0;i<cofaces.size(); i++)
3333-
res -= cofaces[i]->getNbInternalMeshingNodes();
3329+
for (CoFace* cf : getCoFaces())
3330+
res -= cf->getNbInternalMeshingNodes();
33343331

33353332
return res;
33363333
}

0 commit comments

Comments
 (0)