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

fix parametric coordinates of vertices if curve is not parametrized in [0,1]

parent 7dbd8e92
No related branches found
No related tags found
No related merge requests found
......@@ -18,8 +18,11 @@ static void extrudeMesh(GVertex *from, GEdge *to)
for(int k = 0; k < ep->mesh.NbElmLayer[j]; k++) {
double x = v->x(), y = v->y(), z = v->z();
ep->Extrude(j, k + 1, x, y, z);
if(j != ep->mesh.NbLayer - 1 || k != ep->mesh.NbElmLayer[j] - 1)
to->mesh_vertices.push_back(new MEdgeVertex(x, y, z, to, ep->u(j, k + 1)));
if(j != ep->mesh.NbLayer - 1 || k != ep->mesh.NbElmLayer[j] - 1){
Range<double> r = to->parBounds(0);
double t = r.low() + ep->u(j, k + 1) * (r.high() - r.low());
to->mesh_vertices.push_back(new MEdgeVertex(x, y, z, to, t));
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment