Mesh going outward on surface delimited by two splines and a line
When doing the following geo:
h = 0.05;
Point(1) = {1,0,0,h};
angle = Pi/16;
z = 0.2/8;
For i In {1:8}
p1[] += {newp}; Point(newp) = {Cos(i*angle),Sin(i*angle),0,h};
p2[] += {newp}; Point(newp) = {Cos(i*angle),Sin(i*angle),i*z,h};
EndFor
l1 = newl; Spline(newl) = {1,p1[]};
l2 = newl; Spline(newl) = {1,p2[]};
l3 = newl; Line(newl) = {p1[7],p2[7]};
ll = newll; Line Loop(newll) = {l1,l3,-l2};
Surface(news) = {ll};
Mesh 2;
I get a mesh that is going outward whereas I would like it to stay in the cylinder delimited by the splines. The result is visible on the following image:
Is this a bug or is there another way to do what I want ?