<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:'Times New Roman',Times,serif;" dir="ltr">
<p>Dear gmsh team,</p>
<p><br>
</p>
<p>I am using wire function to create surfaces but somehow it creates surface for downward lines (inclined dowward) but for upward line, it doesnt </p>
<p>work: A simple example below. I try to create two surfaces same way for two set of points: X1,Y1 and X2,Y2 but only for {X1,Y1} it works. </p>
<p>For X2,Y2, I see that no <span style="font-size: 12pt;">surface is created. Can you please let me know what is wrong with my code ? I thank you very much !</span></p>
<p><br>
</p>
<p></p>
<div>// mesh size description</div>
<div><br>
</div>
<div>cl_1   =  2.000000e-01;</div>
<div>cl_2   =  1.000000e-01;</div>
<div><br>
</div>
<div>SetFactory("OpenCASCADE");</div>
<div>Rectangle(1) = {-1.100000e+00,-1.100000e+00,0,2.200000e+00,1.200000e+00,0};</div>
<div>// Mesh Parameters</div>
<div>Mesh.CharacteristicLengthExtendFromBoundary = 1;</div>
<div>Mesh.CharacteristicLengthMax = 1.000000e-01;</div>
<div><br>
</div>
<div><br>
</div>
<div>Geometry.NumSubEdges = 100;</div>
<div>// no. of spline surfaces = 11</div>
<div><br>
</div>
<div>X1 ={-0.12158,0,0.24363,0.48725,0.73088,0.9745};</div>
<div>Y1 ={-0.315,-0.2636,-0.3558,-0.448,-0.5402,-0.6324};</div>
<div><br>
</div>
<div><br>
</div>
<div>X[] = X1[];Y[] = Y1[];</div>
<div>d = 1.319954e-01;</div>
<div>//Printf("newp=", newp);</div>
<div>P1     = newp; P2     = newp+1;P3     = newl; Point(P1) =  {X[0],Y[0],0,cl_2}; Point(P2) =  {X[1],Y[1],0,cl_2}; Line(P3) = {P1,P2};</div>
<div><br>
</div>
<div>nR = #X[ ];p0  =  newp;p   =  p0;</div>
<div>For i In {1:nR-1}</div>
<div>Point(newp)  =    {X[i], Y[i], 0, cl_2};</div>
<div>EndFor</div>
<div><br>
</div>
<div>L1 = newl;L2 = newl+1; p2  =  newp-1;Spline(L1)   =  {p0 : p0 + nR - 2}; Wire(L2) = {L1};Extrude { Line{P3}; } Using Wire {L2}</div>
<div><br>
</div>
<div>X2 ={-0.7409,-0.676,-0.7078,-0.7396,-0.7714,-0.8032,-0.835,-0.8668,-0.8986,-0.9304,-0.9622,-0.994};</div>
<div>Y2 ={-0.70368,-0.6213,-0.60282,-0.58434,-0.56586,-0.54738,-0.5289,-0.51042,-0.49194,-0.47346,-0.45498,-0.4365};</div>
<div><br>
</div>
<div><br>
</div>
<div>X[] = X2[];Y[] = Y2[];</div>
<div>d = 1.048680e-01;</div>
<div>//Printf("newp=", newp);</div>
<div>P1     = newp; P2     = newp+1;P3     = newl; Point(P1) =  {X[0],Y[0],0,cl_2}; Point(P2) =  {X[1],Y[1],0,cl_2}; Line(P3) = {P1,P2};</div>
<div><br>
</div>
<div>nR = #X[ ];p0  =  newp;p   =  p0;</div>
<div>For i In {1:nR-1}</div>
<div>Point(newp)  =    {X[i], Y[i], 0, cl_2};</div>
<div>EndFor</div>
<div>L1 = newl;L2 = newl+1; p2  =  newp-1;Spline(L1)   =  {p0 : p0 + nR - 2}; Wire(L2) = {L1};Extrude { Line{P3}; } Using Wire {L2}</div>
<div><br>
</div>
<br>
<p></p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div name="divtagdefaultwrapper" style="margin:0px"><font face="Times New Roman, Times, serif" color="#0000ff"><br>
</font></div>
<div name="divtagdefaultwrapper" style="margin:0px">
<hr>
</div>
<blockquote style="margin:0 0 0 40px; border:none; padding:0px">
<div name="divtagdefaultwrapper" style="margin:0px"><font face="Times New Roman, Times, serif">Best Regards,</font></div>
<div name="divtagdefaultwrapper" style="margin:0px"><font face="Times New Roman, Times, serif"><br>
</font></div>
<div name="divtagdefaultwrapper" style="margin:0px"><span style="font-family:"Times New Roman",Times,serif">Sathyanarayan Rao, PhD student</span></div>
<div name="divtagdefaultwrapper" style="margin:0px"><span style="font-family:"Times New Roman",Times,serif; background-color:rgb(255,255,255); white-space:pre-wrap">Earth and Life Institute/Environmental Sciences (ELI-e)</span></div>
<div name="divtagdefaultwrapper" style="margin:0px"><span style="background-color:rgb(255,255,255); font-family:"Times New Roman",Times,serif; white-space:pre-wrap">Université catholique de Louvain</span></div>
<div name="divtagdefaultwrapper" style="margin:0px"><span style="font-family:"Times New Roman",Times,serif; white-space:pre-wrap; background-color:rgb(255,255,255)">c.037, Croix du Sud 2, Louvain-la-Neuve, Belgium
</span></div>
<div name="divtagdefaultwrapper" style="margin:0px"><span style="background-color:rgb(255,255,255); white-space:pre-wrap">Phone: 010473827 ( intercom 73827)</span></div>
</blockquote>
<div name="divtagdefaultwrapper" style="margin:0px">
<div>
<pre cols="72" style="white-space:pre-wrap; background-color:rgb(255,255,255)"><hr></pre>
</div>
</div>
</div>
</div>
</div>
</body>
</html>