<div dir="ltr"><div>> <span style="color:rgb(33,33,33)">ex1[] = Extrude{0,0,1}{Surface{bo1()};</span><span style="color:rgb(33,33,33)">};</span><br></div><div><span style="color:rgb(33,33,33)"><br></span></div><div><span style="color:rgb(33,33,33)">As a general rule, do OpenCASCADE entities always only work with round brackets?</span></div><div><span style="color:rgb(33,33,33)"><br></span></div><div><span style="color:rgb(33,33,33)">Cheers,</span></div><div><span style="color:rgb(33,33,33)">Nico</span></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 27, 2017 at 2:07 PM Christophe Geuzaine <<a href="mailto:cgeuzaine@ulg.ac.be">cgeuzaine@ulg.ac.be</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
> On 27 Sep 2017, at 14:03, Nico Schlömer <<a href="mailto:nico.schloemer@gmail.com" target="_blank">nico.schloemer@gmail.com</a>> wrote:<br>
><br>
> Hi everyone,<br>
><br>
> The following code forms a union of a rectangle and two disks, and aims to extrude the resulting shape.<br>
> ```<br>
> SetFactory("OpenCASCADE");<br>
><br>
> Mesh.CharacteristicLengthMin = 0.1;<br>
> Mesh.CharacteristicLengthMax = 0.1;<br>
><br>
> s0 = news;<br>
> Rectangle(s0) = {-1.0, -1.0, 0.0, 2.0, 2.0};<br>
><br>
> s1 = news;<br>
> Disk(s1) = {-1.0, 0.0, 0.0, 0.5};<br>
><br>
> s2 = news;<br>
> Disk(s2) = {1.0, 0.0, 0.0, 0.5};<br>
><br>
> bo1[] = BooleanUnion{Surface {s0}; Delete;} {Surface {s1,s2}; Delete;};<br>
><br>
> ex1[] = Extrude{0,0,1}{Surface{bo1};};<br>
> ```<br>
> However, it appears that only the _difference_ between the rectangle and the disks is extruded.<br>
><br>
> Any idea what's going on?<br>
<br>
The last line should be<br>
<br>
ex1[] = Extrude{0,0,1}{Surface{bo1()};};<br>
<br>
<br>
><br>
> Cheers,<br>
> Nico<br>
> _______________________________________________<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>
Free software: <a href="http://gmsh.info" rel="noreferrer" target="_blank">http://gmsh.info</a> | <a href="http://getdp.info" rel="noreferrer" target="_blank">http://getdp.info</a> | <a href="http://onelab.info" rel="noreferrer" target="_blank">http://onelab.info</a><br>
<br>
</blockquote></div>