<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 2 Mar 2018, at 11:45, 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 using wire function to create surfaces but somehow it creates surface for downward lines (inclined dowward) but for upward line, it doesnt </div><div style="margin-top: 0px; margin-bottom: 0px;" class="">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. </div><div style="margin-top: 0px; margin-bottom: 0px;" class="">For X2,Y2, I see that no <span style="font-size: 12pt;" class="">surface is created. Can you please let me know what is wrong with my code ? I thank you very much !</span></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div></div></div></blockquote><div><br class=""></div><span class="">See <a href="https://gitlab.onelab.info/gmsh/gmsh/issues/373" class="">https://gitlab.onelab.info/gmsh/gmsh/issues/373</a> : for some reason BRepOffsetAPI_MakePipe failed on this. I changed the pipe creation mode to "GeomFill_IsDiscreteTrihedron", which seems to behave better.<br class=""></span><span class=""><br class=""></span><span class="">If there are some OpenCASCADE gurus reading this, your guidance would be appreciated :-)<br class=""></span><span class=""><br class=""></span><span class="">Christophe<br class=""></span><span class=""><br class=""></span><span class=""><br class=""></span><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="">// mesh size description</div><div class=""><br class=""></div><div class="">cl_1   =  2.000000e-01;</div><div class="">cl_2   =  1.000000e-01;</div><div class=""><br class=""></div><div class="">SetFactory("OpenCASCADE");</div><div class="">Rectangle(1) = {-1.100000e+00,-1.100000e+00,0,2.200000e+00,1.200000e+00,0};</div><div class="">// Mesh Parameters</div><div class="">Mesh.CharacteristicLengthExtendFromBoundary = 1;</div><div class="">Mesh.CharacteristicLengthMax = 1.000000e-01;</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Geometry.NumSubEdges = 100;</div><div class="">// no. of spline surfaces = 11</div><div class=""><br class=""></div><div class="">X1 ={-0.12158,0,0.24363,0.48725,0.73088,0.9745};</div><div class="">Y1 ={-0.315,-0.2636,-0.3558,-0.448,-0.5402,-0.6324};</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">X[] = X1[];Y[] = Y1[];</div><div class="">d = 1.319954e-01;</div><div class="">//Printf("newp=", newp);</div><div class="">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 class=""><br class=""></div><div class="">nR = #X[ ];p0  =  newp;p   =  p0;</div><div class="">For i In {1:nR-1}</div><div class="">Point(newp)  =    {X[i], Y[i], 0, cl_2};</div><div class="">EndFor</div><div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">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 class="">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 class=""><br class=""></div><div class=""><br class=""></div><div class="">X[] = X2[];Y[] = Y2[];</div><div class="">d = 1.048680e-01;</div><div class="">//Printf("newp=", newp);</div><div class="">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 class=""><br class=""></div><div class="">nR = #X[ ];p0  =  newp;p   =  p0;</div><div class="">For i In {1:nR-1}</div><div class="">Point(newp)  =    {X[i], Y[i], 0, cl_2};</div><div class="">EndFor</div><div class="">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 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=""><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>