<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>
<div id="Signature">
<div name="divtagdefaultwrapper" style="margin: 0px;">
<div name="divtagdefaultwrapper" style="margin: 0px;"><font face="Times New Roman, Times, serif" color="#0000ff" style=""><font face="Calibri, Arial, Helvetica, sans-serif">I am trying to transform a set of spline function into thin surfaces that can be given
 one </font>physical<font face="Calibri, Arial, Helvetica, sans-serif"> group. </font></font></div>
<div name="divtagdefaultwrapper" style="margin: 0px;"><font color="#0000ff" face="Calibri, Arial, Helvetica, sans-serif">I am using extrude function to make these splines to have specific thickness so that it becomes a surface.</font></div>
<div name="divtagdefaultwrapper" style="margin: 0px;"><span style="color: rgb(0, 0, 255); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">However the resulting surface from extrude cannot be fused together. My problem in a simplified code:</span><br>
</div>
<div name="divtagdefaultwrapper" style="margin: 0px;"><font color="#0000ff" face="Calibri, Arial, Helvetica, sans-serif">Is there a easy way in gmsh to convert set of splines to become surface with specific thickness ?  Kindly </font></div>
<div name="divtagdefaultwrapper" style="margin: 0px;"><font color="#0000ff" face="Calibri, Arial, Helvetica, sans-serif">let me know ?</font></div>
<div name="divtagdefaultwrapper" style="margin: 0px;"><font color="#0000ff" face="Calibri, Arial, Helvetica, sans-serif"><br>
</font></div>
<div name="divtagdefaultwrapper" style="margin: 0px;"><font color="#0000ff" face="Calibri, Arial, Helvetica, sans-serif">
<div>SetFactory("OpenCASCADE");</div>
<div><br>
</div>
<div>// mesh size description</div>
<div><br>
</div>
<div>cl_1   =  5;</div>
<div>cl_2   =  3.000000e-01;</div>
<div>r   =  0.5;</div>
<div><br>
</div>
<div><br>
</div>
<div>// Define Segment coordinates</div>
<div><br>
</div>
<div>X1 ={0,0.000811,0.001097,0.001233,0.00129,0.001325,0.001335,0.001343,0.001346,0.001347,0.001348,0.001348,0.001349,0.001349,0.001349,0.001349,0.001349,0.001349,0.001349,0.0013487};</div>
<div>Y1 ={0,-2.4,-4,-5.6,-7.2,-8.8,-10.4,-12,-13.6,-15.2,-16.8,-18.4,-20,-21.6,-23.2,-24.8,-26.4,-28,-28.96,-29.118};</div>
<div><br>
</div>
<div><br>
</div>
<div>X2 ={0.0002703,1.276,1.564,1.433,1.302,1.171,1.04,0.9087,0.7122,0.71171};</div>
<div>Y2 ={-0.8,-0.8009,-1.366,-2.351,-3.335,-4.32,-5.305,-6.29,-7.767,-7.7709};</div>
<div><br>
</div>
<div><br>
</div>
<div>// Define 1 segment</div>
<div><br>
</div>
<div>LN = 90;</div>
<div>nR = #X1[];</div>
<div>p0  =  newp;</div>
<div>p   =  p0;</div>
<div>For i In {0:nR-1}</div>
<div>Point(newp)  =    {X1[i], Y1[i], 0, cl_2};</div>
<div>EndFor</div>
<div>p2  =  newp-1;</div>
<div>Spline(LN)   =  {p:p2};</div>
<div>Extrude {r, r, 0} { Line{LN};}</div>
<div><br>
</div>
<div>// Define 2 segment</div>
<div><br>
</div>
<div>LN = 95;</div>
<div>nR = #X2[];</div>
<div>p0  =  newp;</div>
<div>p   =  p0;</div>
<div>For i In {0:nR-1}</div>
<div>Point(newp)  =    {X2[i], Y2[i], 0, cl_2};</div>
<div>EndFor</div>
<div>p2  =  newp-1;</div>
<div>Spline(LN)   =  {p:p2};</div>
<div>Extrude {r, r, 0} { Line{LN};}</div>
<div><br>
</div>
<div>BooleanUnion(100) = { Surface {1}; Delete; }{ Surface {2}; Delete; };</div>
<div>Physical Surface(1) = {100};</div>
<br>
</font></div>
<div name="divtagdefaultwrapper" style="font-family: Calibri, Arial, Helvetica, sans-serif; margin: 0px;">
<hr>
</div>
<blockquote style="font-family: Calibri, Arial, Helvetica, sans-serif; margin: 0px 0px 0px 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="font-family: Calibri, Arial, Helvetica, sans-serif; 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>