<div dir="ltr"><div><div><div>Thanks <span style="color:rgb(0,0,0)"><span style="font-size:11pt;font-family:"tahoma",sans-serif">Guillaume ! <br><br></span></span></div><span style="font-size:11pt;font-family:"tahoma",sans-serif;color:rgb(0,0,153)"><span style="color:rgb(0,0,0)">I tried using the </span>OpenCascade <font color="#000000">factory but I am getting an error, Possible due to the way I am importing stl files. Is there a specific way of importing them when I use </font></span><br><span style="font-size:11pt;font-family:"tahoma",sans-serif;color:rgb(0,0,153)">OpenCascade ?<br><br></span></div><span style="font-size:11pt;font-family:"tahoma",sans-serif;color:rgb(0,0,153)"><font color="#000000">I am getting the following errors (GEO file is attached) : <br><br><span style="color:rgb(255,0,0)">Info : Done reading 'Grain_Feature_1.stl'<br>Error : Unknown OpenCASCADE face with tag 1<br>Error : Unknown OpenCASCADE surface loop with tag 1<br><br>Info : Done reading 'Grain_Feature_2.stl'<br>Error : Unknown OpenCASCADE face with tag 2<br>Error : Unknown OpenCASCADE surface loop with tag 2<br>Error : Unknown OpenCASCADE entity of dimension 3 with tag 1</span><br><br><br></font></span></div><span style="font-size:11pt;font-family:"tahoma",sans-serif;color:rgb(0,0,153)"><font color="#000000">Could you or anyone help me fix this ?? <br></font></span></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 17, 2017 at 6:13 AM, DILASSER Guillaume <span dir="ltr"><<a href="mailto:Guillaume.DILASSER@cea.fr" target="_blank">Guillaume.DILASSER@cea.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="#0563C1" vlink="#954F72" lang="FR">
<div class="m_-9171292140366059372WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US">Hello,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US">Unfortunately, Gmsh is
<a href="http://gmsh.info/doc/texinfo/gmsh.html#and-what-Gmsh-is-not-so-good-at" target="_blank">
fairly limited when it comes to operations like computing intersections</a>. However, you might be able to do something using the OpenCascade factory included in the latest nigthly build. You can download it from
<a href="http://gmsh.info/" target="_blank">gsmh.info</a>, under the download paragraph, just under the “Development version” mention. For example, you might want to have a look at the Boolean.geo exemple
<a href="https://onelab.info/svn/gmsh/trunk/demos/boolean/" target="_blank">here</a> and there few examples on how to import geometry from files (they will only work with the nightly, ID & password = gmsh). Hoping that will be helpful,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US">Faithfully Yours,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Tahoma",sans-serif;color:#000099">Guillaume DILASSER</span><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#000099"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#000099">Doctorant SACM / LEAS<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#000099">CEA - Centre de Saclay - Bât.123 - PC 319c</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#000099"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#000099">91191 Gif sur Yvette Cedex - France -</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#000099"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#000099"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#000099"><a href="mailto:guillaume.dilasser@cea.fr" target="_blank"><span style="color:blue">guillaume.dilasser@cea.fr</span></a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">De :</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> gmsh [mailto:<a href="mailto:gmsh-bounces@ace20.montefiore.ulg.ac.be" target="_blank">gmsh-bounces@ace20.<wbr>montefiore.ulg.ac.be</a>]
<b>De la part de</b> Prithivirajan V<br>
<b>Envoyé :</b> vendredi 17 mars 2017 03:23<br>
<b>À :</b> <a href="mailto:gmsh@geuz.org" target="_blank">gmsh@geuz.org</a><br>
<b>Objet :</b> [Gmsh] Creating a spherical hole inside a volume [Files attached for testing]<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hello all,<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">My objective is to create the spherical hole inside a volume. I have 2 STL files(see attached) as inputs. The complication is that the spherical hole intersects the two other existing volumes and it is not contained
entirely in either one of the volumes.<br>
<br>
<br>
<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I tried two approaches both of them were a failure (geo files are attached for both) :<u></u><u></u></p>
</div>
<p class="MsoNormal"><b>Approach 1 :</b><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I used the merge command and then I created a spherical volume and performed meshing.
<span style="color:red">The issue is the sphere is getting meshed separately without any relation to the other 2 volumes.<br>
<br>
</span><br>
<b>Approach 2 :</b><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">First , I created an STL file of the spherical void separately. Now I used merge command on all 3 STL files.
<span style="color:red">Now i am getting intersections which I am unable to resolve.<br>
<br>
</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><b><span style="color:blue">I have been stuck here for a while in this, your help would be greatly appreciated</span></b><span style="color:blue">!!!!</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Prithivi<u></u><u></u></p>
</div>
</div>
</div></div></div>
</div>
</blockquote></div><br></div>