I'm looking for a mesh generation software that
- is free and open source,
- provides a sane scripting interface for domain specification,
- works for complex geometries,
- can generate 2D and 3D meshes,
What options do I have?
I'm looking for a mesh generation software that
What options do I have?
I would recommend you look at gmsh. It has both text and CAD-like input, capable of 2D and 3D, higher order meshes. It is licensed under the GPL, so there are some restrictions on integrating it into closed source software, but is otherwise completely free/open-source.
I usually use tetgen for 3D (MIT license for research/non-commercial) and triangle for 2D (Custom license free for non-commercial). To script them, you write a input file and call the command line.
In the meantime, I created
Both are fairly well received, so I'm guessing they are helpful to others as well.
Why not Blender? It is a powerful, free and open-source software with python scripting support too.
In Blender 2.79 you need to choose Scripting as Screen layout.
In the top-left Text Editor press + to create a new text data-block; start it with import bpy and then insert the python commands relative to each operation that you can do from the GUI, reading the relative command putting your mouse over the GUI item.
In the attached screenshot are shown the commands to triangulate a circle, starting from the default scene with a cube:
In this way, you can use Blender in scripting mode, without its GUI to export, for example, an output file, running your python script in a terminal:
blender --background --python myscript.py
Here a videotutorial on YouTube.
Cheers
https://www.blender.it/forums/topic/difetto-texture-file-obj-da-wrl/
Here an example of videotutorial on YouTube:
https://www.youtube.com/watch?v=K0yb4sZ7B4g
– Riccardo Volpe Mar 31 '17 at 16:46I have found Salome to be very flexible, with a much better environment than gmsh. It has a much more professional feel IMHO. Moreover, it can generate also hexahedral meshes. It is really worth a try!
Functions are really macros, and if you make one mistake in handling the points/lines/surfaces, Gmsh often just segfaults. At least that is my experience. It is interesting to hear that it seems to work out well for you though. – Nico Schlömer Jun 04 '13 at 18:23