I have many STL files and I want to reduce their size, so I use Gmsh in this way:
gmsh -2 -bin -format vtk -o file.vtk file.stl -0
It reduces the size from 7 MB to 1.2 MB, but if I use the option "Recombine 2D" the size is reduced to 800 KB. I cannot find a way to use recombine in the command line, so I try with the next script file:
Merge "malla.stl";
Recombine Surface {1};
But it doesn't work. The only way that works Recombine 2D is in the graphical interface. How can I automate the command "Recombine 2D"?