diff --git a/Mesh/HighOrder.cpp b/Mesh/HighOrder.cpp index ac3898fedf2107ae93ab0b423edf84f8af8ecd4b..07d9eca7436048a0d640d7bc2552aa8a8a991ef9 100644 --- a/Mesh/HighOrder.cpp +++ b/Mesh/HighOrder.cpp @@ -466,7 +466,8 @@ static void getFaceVertices(GFace *gf, MElement *incomplete, MElement *ele, } } if(reparamOK){ - GPoint gp = gf->closestPoint(SPoint3(X, Y, Z), GUESS); + GPoint gp = gf->point(SPoint2(GUESS[0],GUESS[1])); + // GPoint gp = gf->closestPoint(SPoint3(X, Y, Z), GUESS); if (gp.g()){ v = new MFaceVertex(gp.x(), gp.y(), gp.z(), gf, gp.u(), gp.v()); }