<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div>Try with the latest snapshots: the issue seems fixed.<div class=""><br class=""></div><div class="">Christophe<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 30 May 2018, at 15:02, Bertrand Thierry <<a href="mailto:thierry@ljll.math.upmc.fr" class="">thierry@ljll.math.upmc.fr</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">
<div text="#000000" bgcolor="#FFFFFF" class=""><p class="">Hello Nicu,</p>
The same problem on my computer. I guess it comes from a tolerance
problem with the boolean operators.<br class="">
Adding this to your code :<br class="">
Geometry.ToleranceBoolean = 0.001;<br class="">
makes it work again.<br class="">
<br class="">
(however, I'm not sure if it's the right way to deal with it, maybe
someone else will confirm (<i class="">ou pas</i>) ?)<br class="">
<br class="">
Bert<br class="">
<br class="">
<div class="moz-cite-prefix">On 05/30/2018 12:08 PM, Nicolae Cindea
wrote:<br class="">
</div>
<blockquote type="cite" cite="mid:877enlpiap.fsf@matpc220804.lm.univ-bpclermont.fr" class="">
<br class="">
Dear all,
<br class="">
<br class="">
I think there is an issue concerning the difference (or the
intersection) of two volumes. The following code:
<br class="">
<br class="">
// here starts the code
<br class="">
SetFactory("OpenCASCADE");
<br class="">
<br class="">
L = 0.5; // cylinder length [0, L]
<br class="">
l = 1.00; // triangle edge
<br class="">
r = 0.050; // radius of the sphere
<br class="">
<br class="">
h = l * Sqrt(3) / 2;
<br class="">
<br class="">
Sphere(2) = { 0, 0, 0, r };
<br class="">
<br class="">
Point(101) = { h / 3, 0, -l / 2 };
<br class="">
Point(102) = { h / 3, 0, l / 2 };
<br class="">
Point(103) = { -2 * h / 3, 0, 0 };
<br class="">
<br class="">
Line(201) = { 102, 103 };
<br class="">
Line(202) = { 103, 101 };
<br class="">
Line(203) = { 101, 102 };
<br class="">
<br class="">
Line Loop(204) = {201, 202, 203};
<br class="">
<br class="">
Surface(3) = { 204 };
<br class="">
<br class="">
Translate { -0.108320, 0, -0.062538 } { Surface{3};}
<br class="">
out[] = Extrude { 0, L, 0 }{ Surface{3}; };
<br class="">
<br class="">
<br class="">
BooleanDifference(8) = { Volume{3}; Delete; }{ Volume{2}; Delete;
};
<br class="">
// here ends the code
<br class="">
<br class="">
<br class="">
gives the following error "Error : Intersection operation cannot
be performed". Nevertheless, replacing the line
<br class="">
Translate { -0.108320, 0, -0.062538 } { Surface{3};}
<br class="">
by
<br class="">
Translate { -0.108320, 0, -0.062537 } { Surface{3};}
<br class="">
the error message disappears and everything work as supposed.
<br class="">
<br class="">
Can somebody reproduce this comportment? Since the above .geo file
is generated from another language I'm searching a workaround to
avoid the problematic situations.
<br class="">
<br class="">
Thank you.
<br class="">
<br class="">
Regards,
<br class="">
Nicolae.
<br class="">
<br class="">
PS: my gmsh -info
<br class="">
<br class="">
Version : 3.0.6
<br class="">
License : GNU General Public License
<br class="">
Build OS : Linux64
<br class="">
Build date : 20171105
<br class="">
Build host : <a href="http://gmsh.info" class="">gmsh.info</a>
<br class="">
Build options : 64Bit Ann Bamg Bfgs Blas(Generic) Blossom C++11
Chaco DIntegration Dlopen Fltk Gmm Jpeg(Fltk) Kbipack
Lapack(Generic) LinuxJoystick MathEx Med Mesh Metis Mmg3d Mpeg
Netgen ONELAB ONELABMetamodel OpenCASCADE OpenGL OptHom PETSc
Parser Plugins Png(Fltk) Post SLEPc Solver Taucs TetGen/BR
Tetgen1.5 Voro3D Zlib
<br class="">
FLTK version : 1.3.4
<br class="">
PETSc version : 3.7.5 (complex arithmtic)
<br class="">
OCC version : 7.1.0
<br class="">
MED version : 3.2.0
<br class="">
Packaged by : gitlab-runner
<br class="">
Web site : <a class="moz-txt-link-freetext" href="http://gmsh.info/">http://gmsh.info</a>
<br class="">
Mailing list : <a class="moz-txt-link-abbreviated" href="mailto:gmsh@onelab.info">gmsh@onelab.info</a>
<br class="">
<br class="">
_______________________________________________
<br class="">
gmsh mailing list
<br class="">
<a class="moz-txt-link-abbreviated" href="mailto:gmsh@onelab.info">gmsh@onelab.info</a>
<br class="">
<a class="moz-txt-link-freetext" href="http://onelab.info/mailman/listinfo/gmsh">http://onelab.info/mailman/listinfo/gmsh</a>
<br class="">
</blockquote>
<br class="">
<pre class="moz-signature" cols="72">--
Bertrand THIERRY
CNRS researcher (Chargé de Recherche)
Laboratoire Jacques-Louis Lions
Sorbonne Université
Office 310, Corridor 15/25
Tel: +33 (0)1 44 27 72 01
<a class="moz-txt-link-freetext" href="https://www.ljll.math.upmc.fr/bthierry">https://www.ljll.math.upmc.fr/bthierry</a></pre>
</div>
_______________________________________________<br class="">gmsh mailing list<br class=""><a href="mailto:gmsh@onelab.info" class="">gmsh@onelab.info</a><br class="">http://onelab.info/mailman/listinfo/gmsh<br class=""></div></blockquote></div><br class=""><div class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">— </div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Prof. Christophe Geuzaine<br class="">University of Liege, Electrical Engineering and Computer Science <br class=""><a href="http://www.montefiore.ulg.ac.be/~geuzaine" class="">http://www.montefiore.ulg.ac.be/~geuzaine</a><br class=""><br class="">Free software: http://gmsh.info | http://getdp.info | http://onelab.info</div></div>
</div>
<br class=""></div></body></html>