<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Roboto'; font-size:9pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Hello Theodore,</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> I attached a geo file and a screenshot. If you're using linux, run as </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> gmsh -3 remesh.geo output.msh</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">I suppose this is not exactly what you wanted (the interior volume is not completely removed), and the problem most likely comes from the fact that the interior surface does not form a watertight mesh (has holes). Since the interior volume can 'communicate' with the surrounding volume through the holes, the mesh generator fills everything. The only option I see is making sure that the interior surface is really closed.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Best regards,</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">   Martin Vymazal </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On Thursday 02 May 2013 12:41:18 Ted Kord wrote:<br /></p>
<p style=" margin-top:12px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Hi Martin<br /><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Sorry for the late reply. I've attached the two surface meshes: polygon.stl and ellipsoid.stl. So, what I wanted to do was have a polygon mesh with the ellipsoid removed. Ideally, of course, I just would need to know the common surface shared by both the polygon and the ellipsoid in a 3D mesh.<br /><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Could I ask that you please not share these meshes or post them on the forum as they are subject to some restrictions/copyright, etc. Of course, so that me and the gmsh community can learn, posting and sharing the geo file is a good thing. <br /><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Many thanks,<br /><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Theodore<br /><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On 30 April 2013 22:03, Martin Vymazal <<a href="mailto:martin.vymazal@vki.ac.be"><span style=" text-decoration: underline; color:#0057ae;">martin.vymazal@vki.ac.be</span></a>> wrote:<br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:45px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Hello Theodore,</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:45px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:45px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">could you send me the stl files? If I manage to produce the mesh, I'll send the geo file to you.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:45px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:45px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Best regards,<span style=" color:#888888;"> </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" color:#888888;"> </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" color:#888888;">Martin Vymazal</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:45px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:45px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:45px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On Tuesday 30 of April 2013 17:18:33 Ted Kord wrote:<br /></p>
<p style=" margin-top:12px; margin-bottom:0px; margin-left:85px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Hi Martin,<br /><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:45px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Thanks. Is this what you mean?<br /><br /><br />Merge "polygon.stl";<br />Merge "ellipsoid.stl";<br /><br />CreateTopology;<br /><br />Physical Surface (1) = {1};<br />Physical Surface (2) = {2};<br /><br /><br /><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:45px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">I'm not sure what to do after this to remove the ellipsoid from the polygon?<br /><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:45px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Best regards,<br /><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:45px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Theodore<br /><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:85px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:85px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On 30 April 2013 15:18, Martin Vymazal <<a href="mailto:martin.vymazal@vki.ac.be"><span style=" text-decoration: underline; color:#0057ae;">martin.vymazal@vki.ac.be</span></a>> wrote:<br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:90px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Hi Theodore,</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:90px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:90px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">you need to tell gmsh that the surface contains a hole. Define two line loops - one for the contour of the external polygon (say Line Loop 1) and one for the contour of the ellipse (say Line Loop 2). Then you define your surface for meshing as </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:90px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:90px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Plane Surface(1) = {1,2}; // Subtract the interior of line loop 2 </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:90px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">// from the interior of line loop 1</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:90px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:90px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">See section 5.1.3 in gmsh reference manual or tutorial 3 on gmsh website. </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:90px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:90px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">If you don't have any lines to create line loops from (since you're loading an stl file), take a look at 'CreateTopology'. </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:90px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:90px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Best regards,<span style=" color:#888888;"> </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:45px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" color:#888888;"> </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:45px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" color:#888888;">Martin Vymazal</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:90px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:90px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On Tuesday 30 April 2013 12:32:34 Ted Kord wrote:<br /></p>
<p style=" margin-top:12px; margin-bottom:0px; margin-left:130px; margin-right:120px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Hi,<br /><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:90px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">I have an STL mesh consisting of an irregular ellipsoid in an irregular polygon. When I turn off 'surface faces' in the 'Options - Mesh', I can see the ellipsoid in the polygon. What I'd like to do is mesh just the containing polygon excluding the ellipsoid, i.e., the final mesh will have a hole where the ellipsoid should be. How can I do this in gmsh?<br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:130px; margin-right:120px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br />-- <br />Best regards,</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:130px; margin-right:120px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:130px; margin-right:120px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Theodore</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:130px; margin-right:120px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:90px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:45px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br />_______________________________________________<br />gmsh mailing list<br /><a href="mailto:gmsh@geuz.org"><span style=" text-decoration: underline; color:#0057ae;">gmsh@geuz.org</span></a><br /><a href="http://www.geuz.org/mailman/listinfo/gmsh"><span style=" text-decoration: underline; color:#0057ae;">http://www.geuz.org/mailman/listinfo/gmsh</span></a><br /><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:45px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /><br /><br />-- <br />Best regards,</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:85px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:85px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Theodore</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:85px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:45px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br />_______________________________________________<br />gmsh mailing list<br /><a href="mailto:gmsh@geuz.org"><span style=" text-decoration: underline; color:#0057ae;">gmsh@geuz.org</span></a><br /><a href="http://www.geuz.org/mailman/listinfo/gmsh"><span style=" text-decoration: underline; color:#0057ae;">http://www.geuz.org/mailman/listinfo/gmsh</span></a><br /><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /><br /><br />-- <br />Best regards,</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Theodore</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /><br /></p></body></html>