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

patch from W. Merks-Swolfs

parent dee8c9be
No related branches found
No related tags found
No related merge requests found
...@@ -1813,11 +1813,27 @@ static bool buildConsecutiveListOfVertices(GFace *gf, GEdgeLoop &gel, ...@@ -1813,11 +1813,27 @@ static bool buildConsecutiveListOfVertices(GFace *gf, GEdgeLoop &gel,
for(unsigned int i = 0; i < edgeLoop.size(); i++){ for(unsigned int i = 0; i < edgeLoop.size(); i++){
MVertex *here = edgeLoop[i]; MVertex *here = edgeLoop[i];
GEntity *ge = here->onWhat(); GEntity *ge = here->onWhat();
BDS_Point *pp = nullptr;
if (ge->dim() == 0){
// Point might already be part of other loop
for (std::map<BDS_Point*, MVertex*, PointLessThan>::iterator it = recoverMap.begin();
it != recoverMap.end(); ++it){
if (it->second == here)
{
pp = it->first;
break;
}
}
}
if (pp == nullptr)
{
double U, V; double U, V;
SPoint2 param = coords[i]; SPoint2 param = coords[i];
U = param.x() / m->scalingU; U = param.x() / m->scalingU;
V = param.y() / m->scalingV; V = param.y() / m->scalingV;
BDS_Point *pp = m->add_point(count + countTot, U, V, gf); pp = m->add_point(count + countTot, U, V, gf);
if (ge->dim() == 0){ if (ge->dim() == 0){
pp->lcBGM() = BGM_MeshSize(ge, 0, 0, here->x(), here->y(), here->z()); pp->lcBGM() = BGM_MeshSize(ge, 0, 0, here->x(), here->y(), here->z());
} }
...@@ -1838,6 +1854,7 @@ static bool buildConsecutiveListOfVertices(GFace *gf, GEdgeLoop &gel, ...@@ -1838,6 +1854,7 @@ static bool buildConsecutiveListOfVertices(GFace *gf, GEdgeLoop &gel,
count, pp->u, pp->v, param.x(), param.y(), pp->g->classif_tag, count, pp->u, pp->v, param.x(), param.y(), pp->g->classif_tag,
pp->g->classif_degree); pp->g->classif_degree);
bbox += SPoint3(U, V, 0); bbox += SPoint3(U, V, 0);
}
edgeLoop_BDS.push_back(pp); edgeLoop_BDS.push_back(pp);
recoverMapLocal[pp] = here; recoverMapLocal[pp] = here;
count++; count++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment