<div dir="ltr">Hi,<br><br>I've been looking at some topics about how to embed a line in a surface.<br>What I found is the command Line{ } In Surface{ };<div><br></div><div>It seems to work fine as long as I don't transfinite the surface in which I'm embedding the line to.</div><div><br></div><div>The code is as follows:</div><div>// Start of the Script:</div><div><div>// Points:</div><div>Point(1) = {0, 0, 0};</div><div>Point(2) = {2, 0, 0};</div><div>Point(3) = {2, 5, 0};</div><div>Point(4) = {0, 5, 0};</div><div>Point(5) = {1, 2.5, 0};</div><div>Point(6) = {1, 0.5, 0};</div><div><br></div><div>// Lines:</div><div>Line(1) = {1, 2};</div><div>Line(2) = {2, 3};</div><div>Line(3) = {3, 4};</div><div>Line(4) = {4, 1};</div><div><br></div><div>// Surface:</div><div>Line Loop(1) = {1, 2, 3, 4};</div><div>Plane Surface(1) = {1};</div><div>//Transfinite Surface {1} = {1, 2, 3, 4} Right;</div><div><br></div><div>Line(5) = {6, 5};</div><div>//Transfinite Line{5}   = 3;</div><div>Line{5} In Surface{1};</div><div><br></div><div>// Recombine triangular mesh into quadrangular:</div><div>Recombine Surface{1};</div><div><br></div><div>// Set element order to quadratic:</div><div>Mesh.ElementOrder=2;</div><div>Mesh.SecondOrderIncomplete=0;</div><div><br></div><div>// Duplicate Nodes:</div><div>Geometry.Tolerance = 1e-3;</div><div>Coherence Mesh;</div><div><br></div><div>// End of the Script</div><div><br></div><div>If you don't want to run the script, here's what happens:</div><div>If I use Line{} In Surface{} without transfiniting the surface, there's no overlapping of the points that define the line.<br>If I do use Line{} In Surface{} - and this time transfiniting the surface - GMSH puts other points over the line, overlapping the preceding ones.</div><div> </div><div>Does anyone have any explanation for that?</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div style="text-align:left"><b style="font-family:verdana,sans-serif">Bernardo Augusto Opolski</b></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font face="verdana, sans-serif" size="1"><div style="text-align:left"><div style="font-family:arial,sans-serif;font-size:small"><i style="color:rgb(102,102,102);font-family:verdana,sans-serif;font-size:x-small">Engenheiro Civil - UFPR</i><font face="verdana, sans-serif" color="#666666" size="1"><i><br></i></font></div><div style="font-family:arial,sans-serif;font-size:small"><font face="verdana, sans-serif" color="#666666" size="1"><i>Mestrando no Programa de Pós-Graduação em Engenharia de Construção Civil - UFPR</i></font></div><div style="font-family:arial,sans-serif;font-size:small"><font face="verdana, sans-serif" color="#666666" size="1"><i>Aluno de Pós-Graduação em Estruturas Protendidas - IDD</i></font></div><div style="font-family:arial,sans-serif;font-size:small"><font face="verdana, sans-serif" color="#666666">(41) 9 9673 9741</font></div></div></font></blockquote></div></div></div></div></div></div></div>