<div dir="ltr"><div>Dear Christophe,</div><div><br></div><div>Oh great, thanks a lot for the fast reply :-)</div><div><br></div><div>    Best regards,</div><div><br></div><div>    Bojan<br></div><div><br></div><div>    <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 8, 2020 at 1:08 PM Christophe Geuzaine <<a href="mailto:cgeuzaine@uliege.be">cgeuzaine@uliege.be</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> On 8 Jul 2020, at 12:46, Bojan Niceno <<a href="mailto:bojan.niceno.scientist@gmail.com" target="_blank">bojan.niceno.scientist@gmail.com</a>> wrote:<br>
> <br>
> Dear all,<br>
> <br>
> I have a problem when trying to mesh planar structured surfaces.  Although points seem to be uniformly placed on a transfinite surface, they move a bit when recombining the mesh to change triangles to quadrilateral cells.<br>
> <br>
> Here is a simple script which demonstrates it:<br>
> <br>
> // Define points<br>
> Point(1) = {0.0,  0.0,  0.0};<br>
> Point(2) = {0.5,  0.0,  0.0};<br>
> Point(3) = {0.0,  0.5,  0.0};<br>
> Point(4) = {0.7,  0.0,  0.0};<br>
> Point(5) = {0.0,  0.7,  0.0};<br>
> <br>
> // Define connectors from points ...<br>
> Line  (1) = {2, 4};<br>
> Circle(2) = {4, 1, 5};<br>
> Line  (3) = {5, 3};<br>
> Circle(4) = {3, 1, 2};<br>
> <br>
> // ... and set them as transfinite<br>
> Transfinite Curve {1, 2, 3, 4} = 11 Using Progression 1;<br>
> <br>
> // Define surface ...<br>
> Curve Loop(1) = {1, 2, 3, 4};  Plane Surface(1) = {1};<br>
> <br>
> // ... and set it as transfinite too<br>
> Transfinite Surface {1};<br>
> <br>
> So, as I said, generating a 2D mesh over the surface places points properly, but command recombine moves them a bit :-/  Is there a way to prevent these movements of points?<br>
> <br>
> I am also attaching a screenshot of a mesh before and after recombination, to illustrate my problem better.  <br>
> <br>
<br>
Indeed, recombination a posteriori applies some smoothing. You should add<br>
<br>
Recombine Surface{1};<br>
<br>
after "Transfinite Surface {1};", which will directly create a quad mesh.<br>
<br>
Christophe<br>
<br>
<br>
<br>
<br>
>     Best regards,<br>
> <br>
>     Bojan<br>
> <br>
> P.S.  I am not sure if attachments go to the mailing list, I've never used a mailing list before.<br>
> <br>
> <points_after_generation.png><points_after_recombination.png>_______________________________________________<br>
> gmsh mailing list<br>
> <a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a><br>
> <a href="http://onelab.info/mailman/listinfo/gmsh" rel="noreferrer" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a><br>
<br>
— <br>
Prof. Christophe Geuzaine<br>
University of Liege, Electrical Engineering and Computer Science <br>
<a href="http://www.montefiore.ulg.ac.be/~geuzaine" rel="noreferrer" target="_blank">http://www.montefiore.ulg.ac.be/~geuzaine</a><br>
<br>
<br>
<br>
</blockquote></div>