<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 12 Feb 2018, at 20:16, Sathyanarayan Rao <<a href="mailto:sathyanarayan.rao@uclouvain.be" class="">sathyanarayan.rao@uclouvain.be</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div id="divtagdefaultwrapper" dir="ltr" style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 12pt; font-family: "Times New Roman", Times, serif;" class=""><div style="margin-top: 0px; margin-bottom: 0px;" class="">Dear Gmsh team,</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">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></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">for generating boolean unioun of surfaces. But however it gives me error as in the subject line. Can you please</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""> help me to correctly combine surfaces 1:3 into one surface by a boolean unioun ?</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div></div></div></blockquote><div><br class=""></div><div>You can only use the declarative syntax</div><div><br class=""></div><div> BooleanUnion(7) = { Surface {1}; Delete; }{ Surface {2:3}; Delete; };</div><div><br class=""></div><div>If the operation results in the creation of a single shape. If not, use</div><div><br class=""></div><div><div> BooleanUnion { Surface {1}; Delete; }{ Surface {2:3}; Delete; }</div><div><br class=""></div><div>or</div><div><br class=""></div><div> out() = BooleanUnion { Surface {1}; Delete; }{ Surface {2:3}; Delete; };</div><div><br class=""></div><div>If you need the result.</div><div class=""><br class=""></div></div><br class=""><blockquote type="cite" class=""><div class=""><div id="divtagdefaultwrapper" dir="ltr" style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 12pt; font-family: "Times New Roman", Times, serif;" class=""><p style="margin-top: 0px; margin-bottom: 0px;" class=""></p><div class="">SetFactory("OpenCASCADE");</div><div class=""><br class=""></div><div class="">// mesh size description</div><div class=""><br class=""></div><div class="">cl_1 = 5;</div><div class="">cl_2 = 0.01;</div><div class=""><br class=""></div><div class="">Geometry.NumSubEdges = 100; // nicer display of curve</div><div class=""><br class=""></div><div class="">var1 = 0.02; </div><div class="">var2 = 0.1;</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">// Define Segment coordinates</div><div class=""><br class=""></div><div class="">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 class="">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 class=""><br class=""></div><div class="">Point(newp) = {X1[1], Y1[1], 0, cl_2};</div><div class=""><br class=""></div><div class="">// Line 1</div><div class="">Extrude {var1, var1, 0} {</div><div class=""> Point{newp-1}; </div><div class="">}</div><div class=""><br class=""></div><div class="">// Line 2</div><div class="">Extrude {var2, var2, 0} {</div><div class=""> Point{newp-1}; </div><div class="">}</div><div class=""><br class=""></div><div class="">// Line 3</div><div class="">Extrude {var1, var1, 0} {</div><div class=""> Point{newp-1}; </div><div class="">}</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">// Define 1 segment</div><div class=""><br class=""></div><div class="">l0 = newl;</div><div class="">l = l0;</div><div class="">nR = #X1[];</div><div class="">p0 = newp;</div><div class="">p = p0;</div><div class="">For i In {0:nR-1}</div><div class="">Point(newp) = {X1[i], Y1[i], 0, cl_2};</div><div class="">EndFor</div><div class="">p2 = newp-1;</div><div class="">Spline(l0) = {p:p2};</div><div class=""><br class=""></div><div class="">Wire(l0) = {l0};</div><div class="">Extrude { Line{l0-3}; } Using Wire {l0} //left</div><div class="">Extrude { Line{l0-2}; } Using Wire {l0} // center</div><div class="">Extrude { Line{l0-1}; } Using Wire {l0} // right</div><div class=""><br class=""></div><div class="">BooleanUnion(7) = { Surface {1}; Delete; }{ Surface {2:3}; Delete; };</div><div class=""><br class=""></div><br class=""><p style="margin-top: 0px; margin-bottom: 0px;" class=""></p><br class=""><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div id="Signature" class=""><div name="divtagdefaultwrapper" style="font-family: Calibri, Arial, Helvetica, sans-serif; margin: 0px;" class=""><div name="divtagdefaultwrapper" style="margin: 0px;" class=""><font face="Times New Roman, Times, serif" color="#0000ff" class=""><br class=""></font></div><div name="divtagdefaultwrapper" style="margin: 0px;" class=""><hr class=""></div><blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;" class=""><div name="divtagdefaultwrapper" style="margin: 0px;" class=""><font face="Times New Roman, Times, serif" class="">Best Regards,</font></div><div name="divtagdefaultwrapper" style="margin: 0px;" class=""><font face="Times New Roman, Times, serif" class=""><br class=""></font></div><div name="divtagdefaultwrapper" style="margin: 0px;" class=""><span style="font-family: "Times New Roman", Times, serif;" class="">Sathyanarayan Rao, PhD student</span></div><div name="divtagdefaultwrapper" style="margin: 0px;" class=""><span style="font-family: "Times New Roman", Times, serif; background-color: rgb(255, 255, 255); white-space: pre-wrap;" class="">Earth and Life Institute/Environmental Sciences (ELI-e)</span></div><div name="divtagdefaultwrapper" style="margin: 0px;" class=""><span style="background-color: rgb(255, 255, 255); font-family: "Times New Roman", Times, serif; white-space: pre-wrap;" class="">Université catholique de Louvain</span></div><div name="divtagdefaultwrapper" style="margin: 0px;" class=""><span style="font-family: "Times New Roman", Times, serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);" class="">c.037, Croix du Sud 2, Louvain-la-Neuve, Belgium
</span></div><div name="divtagdefaultwrapper" style="margin: 0px;" class=""><span style="background-color: rgb(255, 255, 255); white-space: pre-wrap;" class="">Phone: 010473827 ( intercom 73827)</span></div></blockquote><div name="divtagdefaultwrapper" style="margin: 0px;" class=""><div class=""><pre cols="72" style="white-space: pre-wrap; background-color: rgb(255, 255, 255);" class=""><hr class=""></pre></div></div></div></div></div><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">gmsh mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:gmsh@onelab.info" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">gmsh@onelab.info</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://onelab.info/mailman/listinfo/gmsh" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">http://onelab.info/mailman/listinfo/gmsh</a></div></blockquote></div><br class=""><div class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">— </div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Prof. Christophe Geuzaine<br class="">University of Liege, Electrical Engineering and Computer Science <br class=""><a href="http://www.montefiore.ulg.ac.be/~geuzaine" class="">http://www.montefiore.ulg.ac.be/~geuzaine</a><br class=""><br class="">Free software: http://gmsh.info | http://getdp.info | http://onelab.info</div></div>
</div>
<br class=""></body></html>