No, cut() will only work on OpenCASCADE geometrical entities (CAD entities), not STL meshes.
Christophe > On 22 Apr 2019, at 18:10, Valentin Boltach <val.bolt...@gmail.com> wrote: > > Good day to all. > 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). > Judging by the existing examples, the order is as follows: > gmsh.initialize() > gmsh.open(filepath) > model = gmsh.model > factory = model.occ > model.add("boolean") > R = 1.4 > Rs = R * .7 > factory.addCylinder(-2 * R, 0, 0, 4 * R, 0, 0, Rs, 2) > > # how should it works? > # factory.cut([(3, 1)], [(3, 2)], 3) > > factory.synchronize() > model.mesh.generate(3) > > In GUI this action did not work. Is it even possible with this tool? > As I see here (http://geuz.org/pipermail/gmsh/2019/012737.html) it works but > in another order. Example from this link doesn't work for me. > I'm using gmsh 4.3.0 > > Thanks, > Valiantsin Boltach > > > > _______________________________________________ > gmsh mailing list > gmsh@onelab.info > http://onelab.info/mailman/listinfo/gmsh — Prof. Christophe Geuzaine University of Liege, Electrical Engineering and Computer Science http://www.montefiore.ulg.ac.be/~geuzaine _______________________________________________ gmsh mailing list gmsh@onelab.info http://onelab.info/mailman/listinfo/gmsh