<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Good day to all.</div><div>There was a problem: I want to prepare a model for further analysis, in particular, cut the cylinder from stl model (as a part of Constructive Solid Geometry).</div><div>Judging by the existing examples, the order is as follows:<br></div><div><pre style="color:rgb(0,0,0);font-family:"Courier New";font-size:9pt"><pre style="font-family:"Courier New";font-size:9pt">gmsh.initialize()<br>gmsh.open(filepath)<br>model = gmsh.model<br>factory = model.occ<br>model.add(<span style="color:rgb(0,128,128);font-weight:bold">"boolean"</span>)<br>R = <span style="color:rgb(0,0,255)">1.4<br></span>Rs = R * <span style="color:rgb(0,0,255)">.7<br></span>factory.addCylinder(-<span style="color:rgb(0,0,255)">2 </span>* R, <span style="color:rgb(0,0,255)">0</span>, <span style="color:rgb(0,0,255)">0</span>, <span style="color:rgb(0,0,255)">4 </span>* R, <span style="color:rgb(0,0,255)">0</span>, <span style="color:rgb(0,0,255)">0</span>, Rs, <span style="color:rgb(0,0,255)">2</span>)</pre><pre style="font-family:"Courier New";font-size:9pt"><br><span style="color:rgb(128,128,128);font-style:italic"># how should it works?<br></span><span style="color:rgb(128,128,128);font-style:italic"># factory.cut([(3, 1)], [(3, 2)], 3) </span></pre><pre style="font-family:"Courier New";font-size:9pt"><span style="color:rgb(128,128,128);font-style:italic"><br></span>factory.synchronize()<br>model.mesh.generate(<span style="color:rgb(0,0,255)">3</span>)</pre><pre style="font-family:"Courier New";font-size:9pt"><br></pre></pre><pre><pre><div style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small;white-space:normal">In GUI this action did not work. Is it even possible with this tool?</div><div style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small;white-space:normal">As I see here (<a href="http://geuz.org/pipermail/gmsh/2019/012737.html" style="font-family:"Courier New";font-size:9pt">http://geuz.org/pipermail/gmsh/2019/012737.html)</a> it works but in another order. Example from this link doesn't work for me.</div><div style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small;white-space:normal">I'm using gmsh 4.3.0</div><div style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small;white-space:normal"><br></div><div><font face="Arial, Helvetica, sans-serif"><span style="white-space:normal">Thanks, </span></font></div><div><font face="Arial, Helvetica, sans-serif"><span style="white-space:normal">Valiantsin Boltach</span></font></div><font color="#000000" face="Courier New"><span style="font-size:9pt">

</span></font></pre></pre></div></div></div></div></div></div></div>