Commit 42ee1486 by Christophe Geuzaine

cleanup

parent f705accc
Pipeline #760 failed with stage
in 18 minutes 27 seconds
......@@ -508,14 +508,6 @@ void Frame_field::initFace(GFace* gf)
// compute cumulative cross-data "vertices x elements" for the whole contour of gf
std::list<GEdge*> edges = gf->edges();
vertex_to_elements.clear();
std::set<GEdge*> mySet;
std::list<GEdge*>::iterator it = edges.begin();
while(it != edges.end()){
mySet.insert(*it);
++it;
}
edges.clear();
edges.insert(edges.begin(), mySet.begin(), mySet.end());
for( std::list<GEdge*>::const_iterator it=edges.begin(); it!=edges.end(); it++){
build_vertex_to_elements(*it,false);
}
......
......@@ -70,21 +70,11 @@ static void computeMeshMetricsForBamg(GFace *gf, int numV,
}
void meshGFaceBamg(GFace *gf){
std::list<GEdge*> edges = gf->edges();
//Replace edges by their compounds
std::set<GEdge*> mySet;
std::list<GEdge*>::iterator it = edges.begin();
while(it != edges.end()){
mySet.insert(*it);
++it;
}
edges.clear();
edges.insert(edges.begin(), mySet.begin(), mySet.end());
std::set<MVertex*> bcVertex;
for (std::list<GEdge*>::iterator it = edges.begin(); it != edges.end(); it++){
void meshGFaceBamg(GFace *gf)
{
std::list<GEdge*> edges = gf->edges();
std::set<MVertex*> bcVertex;
for (std::list<GEdge*>::iterator it = edges.begin(); it != edges.end(); it++){
for (unsigned int i = 0; i < (*it)->lines.size(); i++){
bcVertex.insert((*it)->lines[i]->getVertex(0));
bcVertex.insert((*it)->lines[i]->getVertex(1));
......
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