[Gmsh] Setting quality mesh options and Tetgen usage with API

Sacconi, Andrea a.sacconi11 at imperial.ac.uk
Mon Feb 23 23:51:29 CET 2015

Hi everyone,

I would like to ask you a question about quality mesh options and the API.
My geometry is given by a rectangular cuboid which has a spherical hole inside. I generated it and meshed it, but with my surprise some dihedral angles are very small (like 2, 3, 4 degrees).
I was wondering, how can I tweak quality mesh options directly within the API, since I am using gmsh classes within my C++ code? For example, using Tetgen and so on? I know that in the graphical interface you can choose "Optimize 3D", "Optimize with Tetgen", it would be helpful to do it in C++ as well!
Something like: GmshSetOption (.......). I couldn't find anything in the documentation :(


Andrea Sacconi
PhD student, Applied Mathematics
AMMP Section, Department of Mathematics, Imperial College London,
London SW7 2AZ, UK
a.sacconi11 at imperial.ac.uk

More information about the gmsh mailing list