<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 17 Feb 2018, at 12:18, 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="">Hi Christophe,</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">when I run your corrected file, I still get :</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div></div></div></blockquote><div><br class=""></div><div>Which version of Gmsh? The corrected file works with the latest automated snapshot.</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=""><br class=""></div><div class="">Error   : Could not create spline</div><div class="">Error   : 'Ex3.geo', line 41 : Could not add spline</div><div class="">Error   : Unknown OpenCASCADE edge with tag 91</div><div class="">Error   : 'Ex3.geo', line 42 : Could not add line loop</div><div class="">Error   : Unknown OpenCASCADE line loop with tag 91</div><div class="">Error   : 'Ex3.geo', line 43 : Could not add plane surface</div><div class="">Error   : Could not create spline</div><div class="">Error   : 'Ex3.geo', line 56 : Could not add spline</div><div class="">Error   : Unknown OpenCASCADE edge with tag 92</div><div class="">Error   : 'Ex3.geo', line 57 : Could not add line loop</div><div class="">Error   : Unknown OpenCASCADE line loop with tag 92</div><div class="">Error   : 'Ex3.geo', line 58 : Could not add plane surface</div><div class="">Error   : Unknown OpenCASCADE entity of dimension 2 with tag 91</div><div class="">Error   : 'Ex3.geo', line 60 : Could not apply boolean operator</div><div class=""><br class=""></div><br class=""><p style="margin-top: 0px; margin-bottom: 0px;" class=""></p><div style="margin-top: 0px; margin-bottom: 0px;" class="">Please let me know ?</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><hr tabindex="-1" 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; display: inline-block; width: 1041.734375px;" 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=""></span><div id="divRplyFwdMsg" dir="ltr" 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=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>Christophe Geuzaine <<a href="mailto:cgeuzaine@uliege.be" class="">cgeuzaine@uliege.be</a>><br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>17 February 2018 11:24:43<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>Sathyanarayan Rao<br class=""><b class="">Cc:</b><span class="Apple-converted-space"> </span><a href="mailto:gmsh@onelab.info" class="">gmsh@onelab.info</a>; Mathieu Javaux<br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [Gmsh] Error: Unknown Open Cascade entity. Could not apply Boolean operator</font><div class=""> </div></div><div 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=""><div class="" style="word-wrap: break-word; line-break: after-white-space;"><div class=""><br class=""></div>Your indices are wrong - see corrected file. You should probably treat the boundaries differently though.<div class=""><br class=""></div><div class=""></div></div><div class="" style="word-wrap: break-word; line-break: after-white-space;"><div class=""><br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On 16 Feb 2018, at 20:01, Sathyanarayan Rao <<a href="mailto:sathyanarayan.rao@uclouvain.be" class="">sathyanarayan.rao@uclouvain.be</a>> wrote:</div><br class="x_Apple-interchange-newline"><div class=""><div id="x_divtagdefaultwrapper" dir="ltr" class="" style="font-style: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; font-size: 12pt; font-family: "Times New Roman", Times, serif;"><div class="" style="margin-top: 0px; margin-bottom: 0px;">Dear Gmsh team,</div><div class="" style="margin-top: 0px; margin-bottom: 0px;"><br class=""></div><div class="" style="margin-top: 0px; margin-bottom: 0px;">I am using a booleanunion to combine two plane surfaces generated by spline functions.</div><div class="" style="margin-top: 0px; margin-bottom: 0px;"><br class=""></div><div class="" style="margin-top: 0px; margin-bottom: 0px;">If I set factory to open cascade at beginning of code, then I cannot use Bspline but if I use</div><div class="" style="margin-top: 0px; margin-bottom: 0px;">it after I define all my spline function, the booleanunion doesn't recognize the surfaces created before.</div><div class="" style="margin-top: 0px; margin-bottom: 0px;"><br class=""></div><div class="" style="margin-top: 0px; margin-bottom: 0px;">Can you please tell me a work around ? How do I combine these surfaces as one single surface ?</div><div class="" style="margin-top: 0px; margin-bottom: 0px;"><br class=""></div><p class="" style="margin-top: 0px; margin-bottom: 0px;"></p><div class="">// mesh size description</div><div class=""><br class=""></div><div class="">cl_1   =  2;</div><div class="">cl_2   =  1;</div><div class=""><br class=""></div><div class="">// boundary points that forms Rhizotron</div><div class="">Point(1) = {-5, -10, 0, cl_1};</div><div class="">Point(2) = {5, -10, 0, cl_1};</div><div class="">Point(3) = {5, 0, 0, cl_1};</div><div class="">Point(4) = {-5, 0, 0, cl_1};</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">// lines that connect boundary</div><div class="">Line(1) = {1, 2};</div><div class="">Line(2) = {3, 2};</div><div class="">Line(3) = {4, 3};</div><div class="">Line(4) = {1, 4};</div><div class="">Line Loop(4) = {1, -2, -3, -4};</div><div class=""><br class=""></div><div class="">// Mesh Parameters</div><div class="">Mesh.CharacteristicLengthExtendFromBoundary = 0;</div><div class="">Mesh.CharacteristicLengthMax = 2;</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">// no. of spline surfaces = 2</div><div class=""><br class=""></div><div class="">X1 ={0,0,-0.184,-0.676,-0.7729,-0.8773,-0.9599,-1.194,-1.315,-1.526,-1.599,-1.679,-1.817,-2.236,-2.705,-2.963,-3.165,-3.365,-3.41,-3.499,-3.567,-3.674,-3.767,-3.864,-4.079,-4.152,-4.176,-4.175,-4.253,-4.349,-4.412,-4.455,-4.512,-4.568,-4.606,-4.641,-4.5433,-4.5083,-4.4747,-4.4217,-4.3628,-4.321,-4.2627,-4.1616,-4.0764,-4.0762,-4.0552,-3.991,-3.7831,-3.6828,-3.5911,-3.4828,-3.404,-3.3124,-3.2721,-3.0845,-2.8959,-2.6369,-2.1671,-1.7449,-1.5997,-1.52,-1.4572,-1.2531,-1.1354,-0.89561,-0.80161,-0.69478,-0.61953,-0.13723,0.088029,0.1,0};</div><div class="">Y1 ={0,-0.2636,-0.3414,-0.6213,-0.7443,-0.8732,-0.9609,-1.139,-1.218,-1.401,-1.487,-1.598,-1.771,-2.177,-2.615,-2.853,-3.031,-3.398,-3.648,-4.004,-4.126,-4.277,-4.422,-4.574,-4.851,-5.108,-5.228,-5.457,-5.685,-5.848,-5.957,-6.081,-6.195,-6.319,-6.439,-6.654,-6.6753,-6.4603,-6.3549,-6.2379,-6.1197,-5.9984,-5.8985,-5.7257,-5.4736,-5.2346,-5.1329,-4.8985,-4.6328,-4.4759,-4.333,-4.18,-4.0352,-3.6696,-3.4349,-3.0904,-2.9272,-2.6882,-2.2495,-1.8403,-1.6589,-1.5483,-1.4736,-1.2965,-1.22,-1.0375,-0.93855,-0.80673,-0.70383,-0.42979,-0.31104,1.837e-17,0};</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">// Define spline surfaces</div><div class=""><br class=""></div><div class="">LN = 91;</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(91)   =  {p:p2,p};</div><div class="">Line Loop(91) = {91};</div><div class="">Plane Surface(91) = {91};</div><div class=""><br class=""></div><div class="">X2 ={0,0.6623,1.159,1.524,1.654,1.793,1.786,1.82,1.918,2.473,2.551,2.74,2.804,2.827,2.925,2.902,2.8353,2.6431,2.5577,2.0007,1.9187,1.8859,1.8922,1.7531,1.6208,1.248,0.74707,0.084771,0};</div><div class="">Y2 ={-0.2636,-1.322,-2.116,-3,-4.022,-4.975,-5.054,-5.729,-5.859,-6.69,-6.869,-7.322,-7.666,-7.748,-7.728,-7.646,-7.2917,-6.8301,-6.6369,-5.8028,-5.7128,-5.0504,-4.9623,-4.0085,-2.9749,-2.0703,-1.269,-0.21055,-0.2636};</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">// Define spline surfaces</div><div class=""><br class=""></div><div class="">LN = 92;</div><div class="">nR = #X2[ ];</div><div class="">p0  =  newp;</div><div class="">p   =  p0;</div><div class="">For i In {0:nR-1}</div><div class="">Point(newp)  =    {X2[i], Y2[i], 0, cl_2};</div><div class="">EndFor</div><div class="">p2  =  newp-1;</div><div class="">Spline(92)   =  {p:p2,p};</div><div class="">Line Loop(92) = {92};</div><div class="">Plane Surface(92) = {92};</div><div class=""><br class=""></div><div class="">SetFactory("OpenCASCADE");</div><div class="">aa() = BooleanUnion{ Surface {91}; Delete; }{ Surface {92}; Delete; };</div><div class="">Physical Surface(1) = {aa()};</div><br class=""><p class="" style="margin-top: 0px; margin-bottom: 0px;"></p><div class="" style="margin-top: 0px; margin-bottom: 0px;"><br class=""></div><div id="x_Signature" class=""><div name="x_divtagdefaultwrapper" class="" style="font-family: Calibri, Arial, Helvetica, sans-serif; margin: 0px;"><div name="x_divtagdefaultwrapper" class="" style="margin: 0px;"><font face="Times New Roman, Times, serif" color="#0000ff" class=""><br class=""></font></div><div name="x_divtagdefaultwrapper" class="" style="margin: 0px;"><hr class=""></div><blockquote class="" style="margin: 0px 0px 0px 40px; border: none; padding: 0px;"><div name="x_divtagdefaultwrapper" class="" style="margin: 0px;"><font face="Times New Roman, Times, serif" class="">Best Regards,</font></div><div name="x_divtagdefaultwrapper" class="" style="margin: 0px;"><font face="Times New Roman, Times, serif" class=""><br class=""></font></div><div name="x_divtagdefaultwrapper" class="" style="margin: 0px;"><span class="" style="font-family: "Times New Roman", Times, serif;">Sathyanarayan Rao, PhD student</span></div><div name="x_divtagdefaultwrapper" class="" style="margin: 0px;"><span class="" 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="x_divtagdefaultwrapper" class="" style="margin: 0px;"><span class="" 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="x_divtagdefaultwrapper" class="" style="margin: 0px;"><span class="" 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="x_divtagdefaultwrapper" class="" style="margin: 0px;"><span class="" style="background-color: rgb(255, 255, 255); white-space: pre-wrap;">Phone: 010473827 ( intercom 73827)</span></div></blockquote><div name="x_divtagdefaultwrapper" class="" style="margin: 0px;"><div class=""><pre cols="72" class="" style="white-space: pre-wrap; background-color: rgb(255, 255, 255);"><hr class=""></pre></div></div></div></div></div><span id="x_cid:A65409AE-3843-42AF-ACEB-1E00EB36D736@home" class=""><bound.txt></span><span class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; float: none; display: inline !important;">_______________________________________________</span><br class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; float: none; display: inline !important;">gmsh mailing list</span><br class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><a href="mailto:gmsh@onelab.info" class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">gmsh@onelab.info</a><br class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><a href="http://onelab.info/mailman/listinfo/gmsh" class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">http://onelab.info/mailman/listinfo/gmsh</a></div></blockquote></div><br class=""><div class=""><div dir="auto" class="" style="word-wrap: break-word; line-break: after-white-space;"><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">— </div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">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: <a href="http://gmsh.info" class="">http://gmsh.info</a> | <a href="http://getdp.info" class="">http://getdp.info</a> | <a href="http://onelab.info" class="">http://onelab.info</a></div></div></div></div></div></div></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>