Importing thousands of points in Python environment of gmsh
Dear all, In advance I appreciate any consideration. I checked tutorials for running gmsh in python environment and I have some questions:
- How can change the version of mesh? It is done using
Mesh.MshFileVersion = 2.2in gmsh script.
gmsh.model.mesh.generate()only receives dimension.
- I have the coordinate of thousands of points as numpy array (arrays with three columns and thousends of rows). Can I use them directly in python environment of gmsh? I tried the syntax
gmsh.model.geo.addPoint(x, y, z, meshSize=0.0, tag=-1), but it receives only coordinates. Should I add my data to gmsh through a for loop?
- I have different scenarios for coordinate of each point, i.e. the coordinate of points have some uncertainty. So, I want to mesh a series of points rather than just one series (all the coordinates are as numpy arrays). Can I do it automatically in gmsh? Is it possible to make such automation? Thanks for any feedback, Ali