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

force num on embedded vertices

parent aa3c5c65
No related branches found
No related tags found
No related merge requests found
...@@ -592,12 +592,15 @@ static void applyOCCMeshConstraints(GModel *m, const void *constraints) ...@@ -592,12 +592,15 @@ static void applyOCCMeshConstraints(GModel *m, const void *constraints)
// embedding constraint // embedding constraint
if(c.IsEmbedded() && !c.GetFace().IsNull()){ if(c.IsEmbedded() && !c.GetFace().IsNull()){
TopoDS_Shape shape = c.GetFace(); TopoDS_Shape shape = c.GetFace();
Standard_Integer nodeNum;
c.GetNodeNumber(nodeNum);
for(GModel::fiter it2 = m->firstFace(); it2 != m->lastFace(); ++it2){ for(GModel::fiter it2 = m->firstFace(); it2 != m->lastFace(); ++it2){
GFace *gf = *it2; GFace *gf = *it2;
if(gf->getNativeType() != GEntity::OpenCascadeModel) continue; if(gf->getNativeType() != GEntity::OpenCascadeModel) continue;
TopoDS_Shape *shape2 = (TopoDS_Shape*)gf->getNativePtr(); TopoDS_Shape *shape2 = (TopoDS_Shape*)gf->getNativePtr();
if(shape.IsSame(*shape2)){ if(shape.IsSame(*shape2)){
Msg::Debug("... embedding vertex in face %d", gf->tag()); Msg::Debug("... embedding vertex %d in face %d", nodeNum, gf->tag());
gv->mesh_vertices[0]->setNum(nodeNum);
gf->addEmbeddedVertex(gv); gf->addEmbeddedVertex(gv);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment