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

Merge branch 'Fix_parameter_begin_point_on_edge' into 'master'

Fix parameter begin point on edge

See merge request gmsh/gmsh!52
parents d7a5a82b ea0451eb
No related branches found
No related tags found
No related merge requests found
......@@ -405,7 +405,13 @@ static void filterPoints(GEdge*ge, int nMinimumPoints)
v->getParameter(0,t);
if (i != 0){
double t0;
v0->getParameter(0,t0);
if (v0->onWhat()->dim() == 0){
// Vertex is begin point
t0 = ge->parFromPoint(SPoint3(v0->x(), v0->y(), v0->z()));
}
else
v0->getParameter(0, t0);
t=0.5*(t+t0);
}
double lc = F_LcB(ge, t);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment