<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 following the same syntax as <a href="https://gitlab.onelab.info/gmsh/gmsh/blob/master/demos/boolean/boolean.geo" class="OWAAutoLink" id="LPlnk824465" previewremoved="true">https://gitlab.onelab.info/gmsh/gmsh/blob/master/demos/boolean/boolean.geo</a></p>
<p><br>
</p>
<p>for generating boolean unioun of surfaces. But however it gives me error as in the subject line. Can you please</p>
<p> help me to correctly combine surfaces 1:3 into one surface by a boolean unioun ?</p>
<p><br>
</p>
<p></p>
<div>SetFactory("OpenCASCADE");</div>
<div><br>
</div>
<div>// mesh size description</div>
<div><br>
</div>
<div>cl_1   =  5;</div>
<div>cl_2   =  0.01;</div>
<div><br>
</div>
<div>Geometry.NumSubEdges = 100; // nicer display of curve</div>
<div><br>
</div>
<div>var1 = 0.02; </div>
<div>var2 = 0.1;</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>Point(newp)  =    {X1[1], Y1[1], 0, cl_2};</div>
<div><br>
</div>
<div>// Line 1</div>
<div>Extrude {var1, var1, 0} {</div>
<div>  Point{newp-1}; </div>
<div>}</div>
<div><br>
</div>
<div>// Line 2</div>
<div>Extrude {var2, var2, 0} {</div>
<div>  Point{newp-1}; </div>
<div>}</div>
<div><br>
</div>
<div>// Line 3</div>
<div>Extrude {var1, var1, 0} {</div>
<div>  Point{newp-1}; </div>
<div>}</div>
<div><br>
</div>
<div><br>
</div>
<div>// Define 1 segment</div>
<div><br>
</div>
<div>l0 = newl;</div>
<div>l  = l0;</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(l0)   =  {p:p2};</div>
<div><br>
</div>
<div>Wire(l0) = {l0};</div>
<div>Extrude { Line{l0-3}; } Using Wire {l0}   //left</div>
<div>Extrude { Line{l0-2}; } Using Wire {l0}   // center</div>
<div>Extrude { Line{l0-1}; } Using Wire {l0}   // right</div>
<div><br>
</div>
<div>BooleanUnion(7) = { Surface {1}; Delete; }{ Surface {2:3}; Delete; };</div>
<div><br>
</div>
<br>
<p></p>
<br>
<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>