Commit 8527e0e3 authored by Christophe Geuzaine's avatar Christophe Geuzaine

GFace::unsetMeshingAlgo() to restore default algo after forcing change

parent ffcd149f
Pipeline #2839 passed with stage
in 58 minutes and 11 seconds
......@@ -78,11 +78,16 @@ int GFace::getMeshingAlgo() const
it->second;
}
void GFace::setMeshingAlgo(int algo)
void GFace::setMeshingAlgo(int algo) const
{
CTX::instance()->mesh.algo2dPerFace[tag()] = algo;
}
void GFace::unsetMeshingAlgo() const
{
CTX::instance()->mesh.algo2dPerFace.erase(tag());
}
void GFace::delFreeEdge(GEdge *edge)
{
// delete the edge from the edge list and the orientation list
......
......@@ -319,7 +319,8 @@ public:
} meshAttributes;
int getMeshingAlgo() const;
void setMeshingAlgo(int);
void setMeshingAlgo(int) const;
void unsetMeshingAlgo() const;
int getCurvatureControlParameter() const;
void setCurvatureControlParameter(int);
virtual double getMeshSize() const { return meshAttributes.meshSize; }
......
......@@ -2856,6 +2856,7 @@ void meshGFace::operator()(GFace *gf, bool print)
killer(gf);
gf->setMeshingAlgo(1);
(*this)(gf, print);
gf->unsetMeshingAlgo();
}
}
......
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