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

fix bug with boundary layers introduced recently

parent 3c95e0a1
No related branches found
No related tags found
No related merge requests found
......@@ -148,6 +148,7 @@ bool reparamOnFace(MVertex *v1, MVertex *v2, GFace *gf, SPoint2 &param1, SPoint2
return false;
}
// FIXME: this should NOT be in HighOrder.cpp...
bool reparamOnFace(MVertex *v, GFace *gf, SPoint2 &param)
{
......@@ -157,6 +158,12 @@ bool reparamOnFace(MVertex *v, GFace *gf, SPoint2 &param)
return true;
}
if(v->onWhat()->geomType() == GEntity::DiscreteCurve ||
v->onWhat()->geomType() == GEntity::BoundaryLayerCurve){
param = gf->parFromPoint(SPoint3(v->x(), v->y(), v->z()));
return true;
}
if(v->onWhat()->dim() == 0){
GVertex *gv = (GVertex*)v->onWhat();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment