Skip to content
Snippets Groups Projects
Commit 4a82cdae authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

missing initialization of reverseMesh

parent 88f664bd
Branches
Tags
No related merge requests found
...@@ -93,6 +93,7 @@ void GEdge::resetMeshAttributes() ...@@ -93,6 +93,7 @@ void GEdge::resetMeshAttributes()
meshAttributes.extrude = 0; meshAttributes.extrude = 0;
meshAttributes.meshSize = MAX_LC; meshAttributes.meshSize = MAX_LC;
meshAttributes.minimumMeshSegments = 1; meshAttributes.minimumMeshSegments = 1;
meshAttributes.reverseMesh = false;
} }
void GEdge::addFace(GFace *e) void GEdge::addFace(GFace *e)
...@@ -488,14 +489,14 @@ void GEdge::replaceEndingPoints(GVertex *replOfv0, GVertex *replOfv1) ...@@ -488,14 +489,14 @@ void GEdge::replaceEndingPoints(GVertex *replOfv0, GVertex *replOfv1)
} }
// regions that bound this entity or that this entity bounds. // regions that bound this entity or that this entity bounds.
std::list<GRegion*> GEdge::regions() const std::list<GRegion*> GEdge::regions() const
{ {
std::list<GFace*> _faces = faces(); std::list<GFace*> _faces = faces();
std::list<GFace*>::const_iterator it = _faces.begin(); std::list<GFace*>::const_iterator it = _faces.begin();
std::set<GRegion*> _r; std::set<GRegion*> _r;
for ( ; it != _faces.end() ; ++it){ for ( ; it != _faces.end() ; ++it){
std::list<GRegion*> temp = (*it)->regions(); std::list<GRegion*> temp = (*it)->regions();
_r.insert (temp.begin(), temp.end()); _r.insert (temp.begin(), temp.end());
} }
std::list<GRegion*> ret; std::list<GRegion*> ret;
ret.insert (ret.begin(), _r.begin(), _r.end()); ret.insert (ret.begin(), _r.begin(), _r.end());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment