<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:2 11 5 4 2 2 2 2 2 4;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Menlo;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="ES" link="blue" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Thank you for your answer. I tried your boolean fragments command and gets me in that line the following error:</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Info : Reading 'C:\Users\Jacob\Documents\Cube\Cube.geo'...</p>
<p class="MsoNormal">Info : Reading 'C:\Users\Jacob\Documents\Cube\Inlet.brep'...</p>
<p class="MsoNormal">Info : Done reading 'C:\Users\Jacob\Documents\Cube\Inlet.brep'</p>
<p class="MsoNormal">Info : Reading 'C:\Users\Jacob\Documents\Cube\Walls.brep'...</p>
<p class="MsoNormal">Info : Done reading 'C:\Users\Jacob\Documents\Cube\Walls.brep'</p>
<p class="MsoNormal">Info : Reading 'C:\Users\Jacob\Documents\Cube\Outlet.brep'...</p>
<p class="MsoNormal">Info : Done reading 'C:\Users\Jacob\Documents\Cube\Outlet.brep'</p>
<p class="MsoNormal"><span style="color:red">Error : 'C:\Users\Jacob\Documents\Cube\Cube.geo', line 7 : syntax error (:)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red">Error : 'C:\Users\Jacob\Documents\Cube\Cube.geo', line 7 : syntax error (;)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red">Error : 'C:\Users\Jacob\Documents\Cube\Cube.geo', line 7 : syntax error (})<o:p></o:p></span></p>
<p class="MsoNormal">Info : Done reading 'C:\Users\Jacob\Documents\Cube\Cube.geo'</p>
<p class="MsoNormal">Info : Writing 'C:\Users\Jacob\Documents\Cube\cube.log'...</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Instead of that I proved to use BooleanFragments{ Surface{1:6}; Delete; }{ }, but when apply the Surface loop appears 6 more surfaces and the volumen is referenced to them.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><img width="787" height="445" style="width:8.1979in;height:4.6354in" id="Imagen_x0020_3" src="cid:image002.png@01D3A041.2D4A5180"></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I also tried to use <span style="font-family:"Menlo",serif">
Geometry.OCCAutoFix = 0, and gets me the output:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Menlo",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Menlo",serif">Info : Reading 'C:\Users\Jacob\Documents\Cube\Cube.geo'...<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Menlo",serif;color:red">Error : Unknown number option 'Geometry.OCCAutoFix'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Menlo",serif">Info : Reading 'C:\Users\Jacob\Documents\Cube\Inlet.brep'...<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Menlo",serif">Info : Done reading 'C:\Users\Jacob\Documents\Cube\Inlet.brep'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Menlo",serif">Info : Reading 'C:\Users\Jacob\Documents\Cube\Walls.brep'...<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Menlo",serif">Info : Done reading 'C:\Users\Jacob\Documents\Cube\Walls.brep'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Menlo",serif">Info : Reading 'C:\Users\Jacob\Documents\Cube\Outlet.brep'...<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Menlo",serif">Info : Done reading 'C:\Users\Jacob\Documents\Cube\Outlet.brep'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Menlo",serif">Info : Done reading 'C:\Users\Jacob\Documents\Cube\Cube.geo'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Menlo",serif">Info : Writing 'C:\Users\Jacob\Documents\Cube\Cube2.log'...<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Menlo",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Menlo",serif">I attach the script what I used to do that.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Menlo",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Menlo",serif">Best Regards <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Menlo",serif">Jacob</span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Enviado desde <a href="https://go.microsoft.com/fwlink/?LinkId=550986">
Correo</a> para Windows 10</p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="border:none;padding:0cm"><b>De: </b><a href="mailto:cgeuzaine@uliege.be">Christophe Geuzaine</a><br>
<b>Enviado: </b>miércoles, 7 de febrero de 2018 17:21<br>
<b>Para: </b><a href="mailto:jacoban90@outlook.es">Jacob Abdelfatah Ndioubnane</a><br>
<b>CC: </b><a href="mailto:cgeuzaine@ulg.ac.be">Christophe Geuzaine</a>; <a href="mailto:gmsh@onelab.info">
gmsh@onelab.info</a>; <a href="mailto:gdmcbain@protonmail.com">G. D. McBain</a><br>
<b>Asunto: </b>Re: [Gmsh] Boolean Fragments. Créate 3d mesh from surfaces. Surface Loop creates aditional surfaces</p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">On 7 Feb 2018, at 09:07, Jacob Abdelfatah Ndioubnane <<a href="mailto:jacoban90@outlook.es">jacoban90@outlook.es</a>> wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Is thiis would be related to the normals of the surfaces?. I noticed that the normals is oriented outward. So i tried to invert the normals but i cannt find a way to do this.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">This works fine here:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Menlo",serif">SetFactory("OpenCASCADE");<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Menlo",serif">Merge "Inlet.brep";<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Menlo",serif">Merge "Walls.brep";<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Menlo",serif">Merge "Outlet.brep";<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Menlo",serif">BooleanFragments{ Surface{:}; Delete; }{ }<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Menlo",serif">Surface Loop(1) = {1, 5, 2, 3, 6, 4};<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Menlo",serif">Volume(1) = {1};<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Menlo",serif"><br>
<br>
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Menlo",serif">When the orientation of surfaces is inconsistent open cascade will by default automatically reorient the surfaces; unless you set Geomtry.OCCAutoFix = 0.<o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal">I attach a figure below.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Best Regards<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Jacob<02951EDB824840E597D871724BDD93AD.png><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Enviado desde<span class="apple-converted-space"> </span><a href="https://go.microsoft.com/fwlink/?LinkId=550986"><span style="color:#954F72">Correo</span></a><span class="apple-converted-space"> </span>para Windows 10<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<div>
<p class="MsoNormal"><b>De:<span class="apple-converted-space"> </span></b><a href="mailto:jacoban90@outlook.es"><span style="color:#954F72">Jacob Abdelfatah Ndioubnane</span></a><br>
<b>Enviado:<span class="apple-converted-space"> </span></b>martes, 6 de febrero de 2018 22:36<br>
<b>Para:<span class="apple-converted-space"> </span></b><a href="mailto:cgeuzaine@ulg.ac.be"><span style="color:#954F72">Christophe Geuzaine</span></a>;<span class="apple-converted-space"> </span><a href="mailto:gmsh@onelab.info"><span style="color:#954F72">gmsh@onelab.info</span></a>;<span class="apple-converted-space"> </span><a href="mailto:gmsh-owner@onelab.info"><span style="color:#954F72">gmsh-owner@onelab.info</span></a>;<span class="apple-converted-space"> </span><a href="mailto:gmsh-request@ace20.montefiore.ulg.ac.be"><span style="color:#954F72">gmsh-request@ace20.montefiore.ulg.ac.be</span></a>;<span class="apple-converted-space"> </span><a href="mailto:gdmcbain@protonmail.com"><span style="color:#954F72">G.
D. McBain</span></a><br>
<b>Asunto:<span class="apple-converted-space"> </span></b>Boolean Fragments. Créate 3d mesh from surfaces. Surface Loop creates aditional surfaces<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Hi gmsh users:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I’m trying to créate a 3d mesh of a cube from a merged 3d surfaces to apply physical groups easily. I applied the booleanFragments operator, and it removes the aditional edges and vértices. However, when I créate a Surface loop, automatically
generates aditional surfaces(when i go to tools;vissibility;tree appears 12 surfaces) it creates a , and the volume is referenced to the dupplicate surfaces. Im able to créate both 2d and 3d meses, but when i export into freefem as .mesh or .msh is not loaded
correctly. Is there any way to solve this problem. I attach the .geo script below and also the .brep surfaces and the generated .mesh and .msh meses.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#548235">// Gmsh project created on Tue Feb 06 20:13:28 2018</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#548235">SetFactory("OpenCASCADE");</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#548235"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#548235">Merge "Inlet.brep";</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#548235">Merge "Walls.brep";</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#548235">Merge "Outlet.brep";</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#548235"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#548235">s() = Surface "*";</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#548235">BooleanFragments{ Surface{s(0)}; Delete; }{ Surface{s({0:#s()-1})}; Delete; }//+</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#548235"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#548235"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#548235"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#548235"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#548235">//+</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#548235">Surface Loop(1) = {1, 5, 2, 3, 6, 4};</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#548235"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#548235">Volume(1) = {1};</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#548235"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Thank you very much in advance.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Best Regards<span class="apple-converted-space"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Jacob<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#548235"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Enviado desde<span class="apple-converted-space"> </span><a href="https://go.microsoft.com/fwlink/?LinkId=550986"><span style="color:#954F72">Correo</span></a><span class="apple-converted-space"> </span>para Windows 10<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Helvetica",sans-serif">_______________________________________________<br>
gmsh mailing list<br>
<a href="mailto:gmsh@onelab.info">gmsh@onelab.info</a><br>
<a href="http://onelab.info/mailman/listinfo/gmsh">http://onelab.info/mailman/listinfo/gmsh</a></span><o:p></o:p></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Helvetica",sans-serif;color:black">— <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Helvetica",sans-serif;color:black">Prof. Christophe Geuzaine<br>
University of Liege, Electrical Engineering and Computer Science <br>
<a href="http://www.montefiore.ulg.ac.be/~geuzaine">http://www.montefiore.ulg.ac.be/~geuzaine</a><br>
<br>
Free software: http://gmsh.info | http://getdp.info | http://onelab.info<o:p></o:p></span></p>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>