> On 3 May 2020, at 01:55, Michel Cassagnes <[email protected]> wrote: > > Dear all, > > I need some help to make a transfinite line and set size at points work with > the API on Python. > > I made many tests and many looks in examples and doc but I don't find how to > handle all this. > > Please find enclosed an example that doesn't give anything for the line > entered as transfinite with 10 points (take care to change the working folder > at the begining of the script). > > Maybe there is a conflict with other definitions of mesh size (filelds, > characteristic length at points, etc). >
Your last call to gmsh.model.geo.synchronize() resets the meshing attributes of the curve. Either remove it (it's useless anyway), or set your meshing contraints within the "geo" kernel, with "gmsh.model.geo.mesh.setTransfiniteCurve()" instead of "gmsh.model.mesh.setTransfiniteCurve()". Christophe > Thank you. > > Best regards, > > Michel Cassagnes > <test-transfinite.py>_______________________________________________ > gmsh mailing list > [email protected] > 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 [email protected] http://onelab.info/mailman/listinfo/gmsh
